A detailed description of the Linux Curl command, as well as examples

Source: Internet
Author: User
Tags http authentication http post varnish

Linux curl is a file transfer tool that works under the command line using URL rules. It supports file uploads and downloads, so it is a comprehensive transfer tool, but traditionally, the URL is used as a download tool. A, Curl command parameters, there are many I have not used, do not know whether the translation is right, if the wrong place, please correct me.  View copy print?-a/--append when uploading a file, attach to target file-a/--user-agent <string> set user agent to send to server-Anyauth can use "any" authentication method-b/--cookie <name=string/file> cookie string or file read location-Basic uses HTTP Basic authentication-B/--USE-ASCII using ASCII/text transfer-c/--cookie-jar <file& Gt The cookie is written to this file after the operation-c/--continue-at <offset> breakpoint Continuation-d/--data <data> HTTP post to transmit the data--data-ascii &lt ;d ata> Post data in ASCII mode--data-binary <data> post data in binary mode--negotiate use HTTP authentication--digest use the digital body Verification--disable-eprt prohibit use of eprt or LPRT--DISABLE-EPSV prohibit the use of Epsv-d/--dump-header <file> to write header information to the file--egd-fi Le <file> set EGD socket path for random data (SSL)--tcp-nodelay use tcp_nodelay option-e/--referer Source URL-e/--cert <cert[:p assw D]> client certificate file and password (SSL)--cert-type <type> certificate file type (Der/pem/eng) (SSL)--key <key> private key file name (SSL)--key- Type <type> private key file types (Der/pem/eng) (SSL)--pass <pass> private key password (SSL)--engine <eng> encryption engine use (SSL). "--engine list" for list--cacert <file> CA certificate (SSL)--capath <directory> CA directory (made using C_rehash) to Ver Ify peer against (SSL)--ciphers <list> SSL password--compressed requirements Return is a compressed situation (using deflate or gzip)--connect-ti Meout <seconds> Set Maximum request time--create-dirs Create a directory hierarchy of local directories--crlf upload is to convert LF into Crlf-f/--fail connection failure Display HTTP Error--ftp-create-dirs If the remote directory does not exist, create a remote directory--ftp-method [MULTICWD/NOCWD/SINGLECWD] control the use of CWD--FTP-PASV use PASV /EPSV instead of port--ftp-skip-pasv-ip when using PASV, ignore the IP address--ftp-ssl try to use SSL/TLS for FTP data transfer--FTP-SSL-REQD require SSL/TLS to FTP data Transfer-f/--form <name=content> analog HTTP form submission Data-form-string <name=string> simulate HTTP form submission Data-g/--globoff Disable Network Address sequence and scope use {} and []-g/--get to send data in a Get-h/--help help-h/--header <line> Custom header information passed to the server--ignore-content-length ignored The length of the HTTP header information-i/--include output includes protocol header information-i/--heAd only displays document information read from file-j/--junk-session-cookies ignore session cookie-interface <interface> Specify network interface/address usage-KRB4 < level > enable with specified security level KR B4-j/--junk-session-cookies read file into ignore session cookie--interface <interface> use specified network interface/address--KRB4 <level> Enable Krb4-k/--insecure with the specified security level allows you to not use the certificate to SSL site-k/--config the specified profile read-l/--list-only lists the file names under the FTP directory--limit-rate <rate > Set transfer speed--local-port<num> Force local port number-m/--max-time <seconds> set maximum transfer time--max-redirs <num> set maximum read Number of directories--max-filesize <bytes> set the maximum amount of files downloaded-m/--manual display full manual-n/--netrc read the user name and password from the Netrc file--netrc-optional use . netrc or URL to overwrite-n--NTLM use HTTP NTLM authentication-n/--no-buffer Disable buffered output-o/--output write the output to the file-o/--remote-name Writes the output to the file, retains the file name of the remote Files-p/--proxytunnel uses the HTTP proxy--proxy-anyauth to select either Proxy authentication method--proxy-basic use Basic authentication on the proxy--proxy -digest using the digital authentication on the proxy--PROXY-NTLM uses NTLM authentication on the proxy-p/--ftp-port <address> uses the port address instead of Pasv-q/--quote <c Before md> file transfer, send command to server-R/--range <range> retrieving random files from http/1.1 or FTP server byte range--range-file read (SSL)-r/--remote-time when generating files locally, keep remote file time--retr Y <num> when there is a problem with the transmission, the number of retries--retry-delay <seconds> transmission problems occur when the retry interval is set--retry-max-time <seconds> when the transport problem occurs , set the maximum retry time-s/--silent mute mode. Do not output anything-s/--show-error display error--SOCKS4 

  

A detailed description of the Linux Curl command, as well as examples

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.