Curl: Difference between revisions
Content added Content deleted
m (→Switches: m) |
(→Switches: added) |
||
Line 120: | Line 120: | ||
| -a || Append in FTP/SFTP |
| -a || Append in FTP/SFTP |
||
|- |
|- |
||
| -A |
| -A <agent string> || User-agent eg: "Mozilla/4.0" |
||
|- |
|- |
||
| --anyauth || Tells curl to figure out auth method |
| --anyauth || Tells curl to figure out auth method |
||
|- |
|- |
||
| -b || Cookie ("NAME1=VALUE1; NAME2=VALUE2"). If no (=) then treated as filename<br /> |
| -b <name=data> || Cookie ("NAME1=VALUE1; NAME2=VALUE2"). If no (=) then treated as filename<br /> |
||
This is only used as input. No cookies will be stored in the file. To store cookies, use -c or -D<br /> |
This is only used as input. No cookies will be stored in the file. To store cookies, use -c or -D<br /> |
||
|- |
|- |
||
| -c || Cookie-jar(file curl should use to save all cookies) |
| -c <file name> || Cookie-jar(file curl should use to save all cookies) |
||
|- |
|||
| -D || Write the protocol headers to the specified file. |
|||
|- |
|||
| -B || FTP/LDAP - Enable ASCII transfer. |
|||
|- |
|||
| --ciphers <list of ciphers> || [https://www.openssl.org/docs/man1.1.0/apps/ciphers.html List of ciphers] to be used. |
|||
|- |
|||
| --compressed || Request a compressed response using one of the algorithms curl supports |
|||
|- |
|||
| --connect-timeout <seconds> || Maximum time in seconds that the connection to the server may take. |
|||
|- |
|||
| -C <offset> || Continue/Resume a previous file transfer at the given offset.<br /> |
|||
Use "-C -" to tell curl to automatically find out where/how to resume the transfer. |
|||
|- |
|||
| --crlfile <file> || (HTTPS/FTPS) Provide a file using PEM format with a Certificate Revocation List that may specify peer certificates that are to be considered revoked. |
|||
|- |
|||
| -d <file> || HTTP - Sends the specified data in a POST request to the HTTP server, emulate as if a user has filled in an HTML form and pressed the submit button. |
|||
|- |
|||
| --digest || Enables HTTP Digest authentication. |
|||
|- |
|||
| -e <URL> || Sends the "Referer Page" information to the HTTP server. |
|||
|- |
|||
| --engine <name> || Select the OpenSSL crypto engine to use for cipher operations. Use "--engine list" to view list |
|||
|- |
|||
| --cert <certificate[:password]> || Use the specified client certificate file. Certificate must be in PEM format.<br /> |
|||
If the optional password isn't specified, it will be prompted.<br /> |
|||
This assumes that Cert file is private key and private certificate concatenated. use "--cert" and "--key" to specify them independently. |
|||
|- |
|||
--cert-type <type> || Tells curl what certificate type the provided certificate is in. PEM, DER and ENG are recognized types. If not specified, PEM is assumed. |
|||
|- |
|||
| --cacert <CA certificate> || Tells curl to use the specified certificate file to verify the peer. |
|||
|} |
|} |
||