curl usage guide

This paper introduces its main command line parameters as a daily reference for easy reference. -A -The A parameter specifies the user agent header of the client, that is, user agent. The default user agent string for curl is curl/[version]. $ curl -A 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76 ...

Added by tenaki on Wed, 19 Jan 2022 08:55:26 +0200

Detailed explanation of the use of CURL

Initiate GET request The command is followed directly by the address curl 'https://www.baidu.com' Splicing query parameters in request curl -G -d 'key=value' 'https://www.baidu.com' This is equivalent to accessing in the browser address bar https://www.baidu.com?key=value If you need to url encode value, it can be written as follows: c ...

Added by cx3op on Sat, 15 Jan 2022 15:02:02 +0200

SSRF uses gopher to attack mysql and Intranet

SSRF uses Gopher 0X01 foreword After studying the application of Gopher protocol for one day, I decided to write a summary about the SSRF utilization of Gopher protocol. Reference link: https://blog.csdn.net/qq_41107295/article/details/103026470 0X02 overview SSRF (server side request forgery) se ...

Added by dipenmistry on Tue, 23 Jun 2020 08:03:47 +0300

Detailed explanation of Docker Dockerfile instructions and practical cases

Dockerfile introduces and commonly used instructions, including FROM, RUN, COPY, ADD, EXPOSE, WORKDIR, etc. in fact, dockerfile has powerful functions and provides more than ten instructions.   About Dockerfile Dockerfile is a text file used to build an image. The text content contains instructions and instructions required to build an image. ...

Added by programguru on Sun, 21 Jun 2020 11:49:45 +0300

Asynchronous requests in Guzzle

Use Guzzle to make asynchronous requests Guzzle is a PHP HTTP client. It can not only initiate HTTP requests synchronously, but also asynchronously. $client = new Client(); $request = new Request('GET', 'http://www.baidu.com'); $promise = $client->sendAsync($request)->then(function ($response) { echo $response->getBody(); }); // t ...

Added by estan on Thu, 11 Jun 2020 08:41:35 +0300

Series 13 dockerAsp.netCore deployment

1. Introduction This full introductionAsp.netHow the core web api is deployed in a docker container and accesses web api services externally.After you have finished writing the dockerfile, you can create a mirror with the docker [image] build command. The basic format is: docker build [options] path | url | - The command reads the dickerfile ...

Added by Velausanakha on Thu, 21 May 2020 05:13:18 +0300

jQuery plug-in Validation form Validation

function 1. Verification that the required and length of "name" are at least two digits. 2. Verification that "email" is required and in E-mail format. 3. Verify whether the "web address" is a url. 4. Whether "your comment" needs to be verified. Result chart example <!DOCTYPE html PUBLIC " ...

Added by project18726 on Sat, 16 May 2020 18:14:38 +0300

Build LVS-DR load balancing cluster and maintained LVS high availability load balancing cluster

18.11 LVS DR mode construction preparation Three machines have public IP. Scheduler (director) IP: 192.168.230.135 real server1(real1) IP: 192.168.230.130 real server2(real2) IP: 192.168.230.145 VIP: 192.168.230.200 Start building Configure director [root@cham002 ~]# vim /usr/local/sbin/lvs_dr.sh #! /bin/bash echo 1 > /proc/s ...

Added by buddysal on Mon, 04 May 2020 07:27:43 +0300

PHP7.4 a new way to expand FFI

With PHP 7.4, there is an extension that I think is very useful: PHP FFI (Foreign Function interface), which refers to a description in PHP FFI RFC   For PHP, FFI opens a way to write PHP extensions and bindings to C libraries in pure PHP. Yes, FFI provides high-level languages to call each other directly. For PHP, FFI allows us to call various ...

Added by pgudge on Tue, 28 Apr 2020 15:57:51 +0300

Docker consult container service update and discovery

Docker consult container service update and discoveryContainer service update and discovery topologyThe nginx proxy service is deployed on the consumer server. The Registrar detects the service in the docker container and adds the registration to the consumer. The consumer template is registered and written into the created template according ...

Added by thomashw on Fri, 24 Apr 2020 14:54:25 +0300