Curl: Difference between revisions

729 bytes added ,  6 years ago
(→‎Switches: added)
(→‎Switches: added 2)
Line 156:
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.
|-
| -G || This option will make all data specified with -d to be used in a HTTP GET request instead of the POST.
|-
| -H <header> || Extra header to use when getting a web page. You may specify any number of extra headers.
|-
| -i || Include the HTTP-header in the output.
|-
| --interface <name> || Perform an operation using a specified interface, IP address or host name. eg: curl --interface eth0:1 http://www.netscape.com/
|-
| -I || Fetch the HTTP-header only.
|-
| -j || Discard all "session cookies". Same effect as if a new session is started.
|-
| --config <config file> || Specify which config file to read curl arguments from.
|-
| --limit-rate <speed> || Specify the maximum transfer rate you want curl to use.
|}