Curl is a file transfer tool that works in command-line mode based on URL syntax, supports protocols such as Ftp,fps,http,https,gopher,telnet,dict,file and LDAP, Curl supports HTTPS authentication, and supports HTTP post , put and other methods, FTP upload, Kerberos authentication, HTTP upload, proxy server, cookies, username/password Authentication, download file breakpoint continuation, upload file breakpoint continuation, HTTP proxy server pipeline (proxy tunneling), Even it supports IPV6,SOCKS5 proxy server, uploading files to FTP server through HTTP proxy server and so on, the function is very powerful.
Syntax: Curl [OPTIONS] [URL ...]
Common options:
-a/--user-agent (String) to set the user agent to send to the server
Example: Curl-a ' IE11 ' http://172.16.20.242
--basic using HTTP Basic authentication
--tcp-nodelay using the Tcp_nodelay option
-e/--referer <URL> Source Address
Example: Curl-e "Http://www.google.com.hk/search" http://172.16.20.242/index.html
That is, where the URL jumps to
--cacert <file> CA Certificate (SSL)
Indicates which CA certificate is used to verify that the certificate sent by the server is trusted
--compressed
Required to return a compressed format
-h/--header <line>
Custom casting information is passed to the server, given a specific header information
-i/head
Only the header information of the response message is displayed
Cases:
--limit-rate <RATE>
Set transfer speed
-u/--user <user[:p assword]>
Set the server's user name and password
-0/--http1.0
Using HTTP 1.0
Write the more scribbled, if there are missing errors and controversies, welcome everyone's criticism and discussion, thank you.
HTTPD's Curl command