Basic use of the Curl command
Yun Zhengjie
Copyright Notice: Original works, declined reprint! Otherwise, the legal liability will be investigated.
Curl is a file transfer tool that works in command-line mode based on URL syntax, which supports protocols such as Ftp,ftps,http,https,gopher,telnet,dict,file and LDAP. Curl supports HTTPS authentication, and supports methods such as HTTP Post,put, FTP upload, Kerberos authentication, HTTP upload, proxy server, cookies, username/password authentication, uploading files via HTTP proxy server to FTP server, etc. Features are very powerful.
A. Common options for Curl:
1-a/--user-agent <string>set the user agent to send to the server, that is, tell the server browser why2-Basic authentication using HTTP3--tcp-Nodelay using the tcp_nodelay option4-e/--referer <URL>source URL, jump over the URL5--cacert <file>Specify CA certificate (SSL)6--compressed requirements Return is a compressed situation, if the file itself is a compressed file, you can download to the local7-h/--header <line>Custom header information is passed to the server8-i/--Headonly the response message header information is displayed9--limit-rate <rate>Set transfer speedTen-u/--user <user[:p assword]>set the user and password for the server One-0/--HTTP1.0Using HTTP1.0
Basic use of the Curl command