tizen 2.3.1 release
[external/curl.git] / docs / curl.1
1 .\" **************************************************************************
2 .\" *                                  _   _ ____  _
3 .\" *  Project                     ___| | | |  _ \| |
4 .\" *                             / __| | | | |_) | |
5 .\" *                            | (__| |_| |  _ <| |___
6 .\" *                             \___|\___/|_| \_\_____|
7 .\" *
8 .\" * Copyright (C) 1998 - 2015, Daniel Stenberg, <daniel@haxx.se>, et al.
9 .\" *
10 .\" * This software is licensed as described in the file COPYING, which
11 .\" * you should have received as part of this distribution. The terms
12 .\" * are also available at http://curl.haxx.se/docs/copyright.html.
13 .\" *
14 .\" * You may opt to use, copy, modify, merge, publish, distribute and/or sell
15 .\" * copies of the Software, and permit persons to whom the Software is
16 .\" * furnished to do so, under the terms of the COPYING file.
17 .\" *
18 .\" * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
19 .\" * KIND, either express or implied.
20 .\" *
21 .\" **************************************************************************
22 .\"
23 .TH curl 1 "30 Nov 2014" "Curl 7.40.0" "Curl Manual"
24 .SH NAME
25 curl \- transfer a URL
26 .SH SYNOPSIS
27 .B curl [options]
28 .I [URL...]
29 .SH DESCRIPTION
30 .B curl
31 is a tool to transfer data from or to a server, using one of the supported
32 protocols (DICT, FILE, FTP, FTPS, GOPHER, HTTP, HTTPS, IMAP, IMAPS, LDAP,
33 LDAPS, POP3, POP3S, RTMP, RTSP, SCP, SFTP, SMB, SMBS, SMTP, SMTPS, TELNET
34 and TFTP). The command is designed to work without user interaction.
35
36 curl offers a busload of useful tricks like proxy support, user
37 authentication, FTP upload, HTTP post, SSL connections, cookies, file transfer
38 resume, Metalink, and more. As you will see below, the number of features will
39 make your head spin!
40
41 curl is powered by libcurl for all transfer-related features. See
42 .BR libcurl (3)
43 for details.
44 .SH URL
45 The URL syntax is protocol-dependent. You'll find a detailed description in
46 RFC 3986.
47
48 You can specify multiple URLs or parts of URLs by writing part sets within
49 braces as in:
50
51   http://site.{one,two,three}.com
52
53 or you can get sequences of alphanumeric series by using [] as in:
54
55   ftp://ftp.numericals.com/file[1-100].txt
56
57   ftp://ftp.numericals.com/file[001-100].txt    (with leading zeros)
58
59   ftp://ftp.letters.com/file[a-z].txt
60
61 Nested sequences are not supported, but you can use several ones next to each
62 other:
63
64   http://any.org/archive[1996-1999]/vol[1-4]/part{a,b,c}.html
65
66 You can specify any amount of URLs on the command line. They will be fetched
67 in a sequential manner in the specified order.
68
69 You can specify a step counter for the ranges to get every Nth number or
70 letter:
71
72   http://www.numericals.com/file[1-100:10].txt
73
74   http://www.letters.com/file[a-z:2].txt
75
76 When using [] or {} sequences when invoked from a command line prompt, you
77 probably have to put the full URL within double quotes to avoid the shell from
78 interfering with it. This also goes for other characters treated special, like
79 for example '&', '?' and '*'.
80
81 Provide the IPv6 zone index in the URL with an escaped percentage sign and the
82 interface name. Like in
83
84   http://[fe80::3%25eth0]/
85
86 If you specify URL without protocol:// prefix, curl will attempt to guess what
87 protocol you might want. It will then default to HTTP but try other protocols
88 based on often-used host name prefixes. For example, for host names starting
89 with "ftp." curl will assume you want to speak FTP.
90
91 curl will do its best to use what you pass to it as a URL. It is not trying to
92 validate it as a syntactically correct URL by any means but is instead
93 \fBvery\fP liberal with what it accepts.
94
95 curl will attempt to re-use connections for multiple file transfers, so that
96 getting many files from the same server will not do multiple connects /
97 handshakes. This improves speed. Of course this is only done on files
98 specified on a single command line and cannot be used between separate curl
99 invokes.
100 .SH "PROGRESS METER"
101 curl normally displays a progress meter during operations, indicating the
102 amount of transferred data, transfer speeds and estimated time left, etc.
103
104 curl displays this data to the terminal by default, so if you invoke curl to
105 do an operation and it is about to write data to the terminal, it
106 \fIdisables\fP the progress meter as otherwise it would mess up the output
107 mixing progress meter and response data.
108
109 If you want a progress meter for HTTP POST or PUT requests, you need to
110 redirect the response output to a file, using shell redirect (>), -o [file] or
111 similar.
112
113 It is not the same case for FTP upload as that operation does not spit out
114 any response data to the terminal.
115
116 If you prefer a progress "bar" instead of the regular meter, \fI-#\fP is your
117 friend.
118 .SH OPTIONS
119 Options start with one or two dashes. Many of the options require an
120 additional value next to them.
121
122 The short "single-dash" form of the options, -d for example, may be used with
123 or without a space between it and its value, although a space is a recommended
124 separator. The long "double-dash" form, --data for example, requires a space
125 between it and its value.
126
127 Short version options that don't need any additional values can be used
128 immediately next to each other, like for example you can specify all the
129 options -O, -L and -v at once as -OLv.
130
131 In general, all boolean options are enabled with --\fBoption\fP and yet again
132 disabled with --\fBno-\fPoption. That is, you use the exact same option name
133 but prefix it with "no-". However, in this list we mostly only list and show
134 the --option version of them. (This concept with --no options was added in
135 7.19.0. Previously most options were toggled on/off on repeated use of the
136 same command line option.)
137 .IP "-#, --progress-bar"
138 Make curl display progress as a simple progress bar instead of the standard,
139 more informational, meter.
140 .IP "-:, --next"
141 Tells curl to use a separate operation for the following URL and associated
142 options. This allows you to send several URL requests, each with their own
143 specific options, for example, such as different user names or custom requests
144 for each. (Added in 7.36.0)
145 .IP "-0, --http1.0"
146 (HTTP) Tells curl to use HTTP version 1.0 instead of using its internally
147 preferred: HTTP 1.1.
148 .IP "--http1.1"
149 (HTTP) Tells curl to use HTTP version 1.1. This is the internal default
150 version. (Added in 7.33.0)
151 .IP "--http2"
152 (HTTP) Tells curl to issue its requests using HTTP 2. This requires that the
153 underlying libcurl was built to support it. (Added in 7.33.0)
154 .IP "--no-npn"
155 Disable the NPN TLS extension. NPN is enabled by default if libcurl was built
156 with an SSL library that supports NPN. NPN is used by a libcurl that supports
157 HTTP 2 to negotiate HTTP 2 support with the server during https sessions.
158
159 (Added in 7.36.0)
160 .IP "--no-alpn"
161 Disable the ALPN TLS extension. ALPN is enabled by default if libcurl was built
162 with an SSL library that supports ALPN. ALPN is used by a libcurl that supports
163 HTTP 2 to negotiate HTTP 2 support with the server during https sessions.
164
165 (Added in 7.36.0)
166 .IP "-1, --tlsv1"
167 (SSL)
168 Forces curl to use TLS version 1.x when negotiating with a remote TLS server.
169 You can use options \fI--tlsv1.0\fP, \fI--tlsv1.1\fP, and \fI--tlsv1.2\fP to
170 control the TLS version more precisely (if the SSL backend in use supports such
171 a level of control).
172 .IP "-2, --sslv2"
173 (SSL) Forces curl to use SSL version 2 when negotiating with a remote SSL
174 server. Sometimes curl is built without SSLv2 support. SSLv2 is widely
175 considered insecure.
176 .IP "-3, --sslv3"
177 (SSL) Forces curl to use SSL version 3 when negotiating with a remote SSL
178 server. Sometimes curl is built without SSLv3 support.
179 .IP "-4, --ipv4"
180 This option tells curl to resolve names to IPv4 addresses only, and not for
181 example try IPv6.
182 .IP "-6, --ipv6"
183 This option tells curl to resolve names to IPv6 addresses only, and not for
184 example try IPv4.
185 .IP "-a, --append"
186 (FTP/SFTP) When used in an upload, this makes curl append to the target file
187 instead of overwriting it. If the remote file doesn't exist, it will be
188 created.  Note that this flag is ignored by some SFTP servers (including
189 OpenSSH).
190 .IP "-A, --user-agent <agent string>"
191 (HTTP) Specify the User-Agent string to send to the HTTP server. Some badly
192 done CGIs fail if this field isn't set to "Mozilla/4.0". To encode blanks in
193 the string, surround the string with single quote marks. This can also be set
194 with the \fI-H, --header\fP option of course.
195
196 If this option is used several times, the last one will be used.
197 .IP "--anyauth"
198 (HTTP) Tells curl to figure out authentication method by itself, and use the
199 most secure one the remote site claims to support. This is done by first
200 doing a request and checking the response-headers, thus possibly inducing an
201 extra network round-trip. This is used instead of setting a specific
202 authentication method, which you can do with \fI--basic\fP, \fI--digest\fP,
203 \fI--ntlm\fP, and \fI--negotiate\fP.
204
205 Note that using --anyauth is not recommended if you do uploads from stdin,
206 since it may require data to be sent twice and then the client must be able to
207 rewind. If the need should arise when uploading from stdin, the upload
208 operation will fail.
209 .IP "-b, --cookie <name=data>"
210 (HTTP) Pass the data to the HTTP server as a cookie. It is supposedly the data
211 previously received from the server in a "Set-Cookie:" line.  The data should
212 be in the format "NAME1=VALUE1; NAME2=VALUE2".
213
214 If no '=' symbol is used in the line, it is treated as a filename to use to
215 read previously stored cookie lines from, which should be used in this session
216 if they match. Using this method also activates the "cookie parser" which will
217 make curl record incoming cookies too, which may be handy if you're using this
218 in combination with the \fI-L, --location\fP option. The file format of the
219 file to read cookies from should be plain HTTP headers or the Netscape/Mozilla
220 cookie file format.
221
222 The file specified with \fI-b, --cookie\fP is only used as input. No cookies
223 will be written to the file. To store cookies, use the \fI-c, --cookie-jar\fP
224 option.
225
226 If this option is used several times, the last one will be used.
227 .IP "-B, --use-ascii"
228 (FTP/LDAP) Enable ASCII transfer. For FTP, this can also be enforced by using
229 an URL that ends with ";type=A". This option causes data sent to stdout to be
230 in text mode for win32 systems.
231 .IP "--basic"
232 (HTTP) Tells curl to use HTTP Basic authentication with the remote host. This
233 is the default and this option is usually pointless, unless you use it to
234 override a previously set option that sets a different authentication method
235 (such as \fI--ntlm\fP, \fI--digest\fP, or \fI--negotiate\fP).
236
237 Used together with \fI-u, --user\fP and \fI-x, --proxy\fP.
238
239 See also \fI--proxy-basic\fP.
240 .IP "-c, --cookie-jar <file name>"
241 (HTTP) Specify to which file you want curl to write all cookies after a
242 completed operation. Curl writes all cookies previously read from a specified
243 file as well as all cookies received from remote server(s). If no cookies are
244 known, no data will be written. The file will be written using the Netscape
245 cookie file format. If you set the file name to a single dash, "-", the
246 cookies will be written to stdout.
247
248 This command line option will activate the cookie engine that makes curl
249 record and use cookies. Another way to activate it is to use the \fI-b,
250 --cookie\fP option.
251
252 If the cookie jar can't be created or written to, the whole curl operation
253 won't fail or even report an error clearly. Using -v will get a warning
254 displayed, but that is the only visible feedback you get about this possibly
255 lethal situation.
256
257 If this option is used several times, the last specified file name will be
258 used.
259 .IP "-C, --continue-at <offset>"
260 Continue/Resume a previous file transfer at the given offset. The given offset
261 is the exact number of bytes that will be skipped, counting from the beginning
262 of the source file before it is transferred to the destination.  If used with
263 uploads, the FTP server command SIZE will not be used by curl.
264
265 Use "-C -" to tell curl to automatically find out where/how to resume the
266 transfer. It then uses the given output/input files to figure that out.
267
268 If this option is used several times, the last one will be used.
269 .IP "--ciphers <list of ciphers>"
270 (SSL) Specifies which ciphers to use in the connection. The list of ciphers
271 must specify valid ciphers. Read up on SSL cipher list details on this URL:
272 \fIhttp://www.openssl.org/docs/apps/ciphers.html\fP
273
274 NSS ciphers are done differently than OpenSSL and GnuTLS. The full list of NSS
275 ciphers is in the NSSCipherSuite entry at this URL:
276 \fIhttp://git.fedorahosted.org/cgit/mod_nss.git/plain/docs/mod_nss.html#Directives\fP
277
278 If this option is used several times, the last one will be used.
279 .IP "--compressed"
280 (HTTP) Request a compressed response using one of the algorithms curl
281 supports, and save the uncompressed document.  If this option is used and the
282 server sends an unsupported encoding, curl will report an error.
283 .IP "--connect-timeout <seconds>"
284 Maximum time in seconds that you allow curl's connection to take.  This only
285 limits the connection phase, so if curl connects within the given period it
286 will continue - if not it will exit.  Since version 7.32.0, this option
287 accepts decimal values.
288
289 See also the \fI-m, --max-time\fP option.
290
291 If this option is used several times, the last one will be used.
292 .IP "--create-dirs"
293 When used in conjunction with the \fI-o\fP option, curl will create the
294 necessary local directory hierarchy as needed. This option creates the dirs
295 mentioned with the \fI-o\fP option, nothing else. If the \fI-o\fP file name
296 uses no dir or if the dirs it mentions already exist, no dir will be created.
297
298 To create remote directories when using FTP or SFTP, try
299 \fI--ftp-create-dirs\fP.
300 .IP "--crlf"
301 Convert LF to CRLF in upload. Useful for MVS (OS/390).
302
303 (SMTP added in 7.40.0)
304 .IP "--crlfile <file>"
305 (HTTPS/FTPS) Provide a file using PEM format with a Certificate Revocation
306 List that may specify peer certificates that are to be considered revoked.
307
308 If this option is used several times, the last one will be used.
309
310 (Added in 7.19.7)
311 .IP "-d, --data <data>"
312 (HTTP) Sends the specified data in a POST request to the HTTP server, in the
313 same way that a browser does when a user has filled in an HTML form and
314 presses the submit button. This will cause curl to pass the data to the server
315 using the content-type application/x-www-form-urlencoded.  Compare to
316 \fI-F, --form\fP.
317
318 \fI-d, --data\fP is the same as \fI--data-ascii\fP. To post data purely binary,
319 you should instead use the \fI--data-binary\fP option. To URL-encode the value
320 of a form field you may use \fI--data-urlencode\fP.
321
322 If any of these options is used more than once on the same command line, the
323 data pieces specified will be merged together with a separating
324 &-symbol. Thus, using '-d name=daniel -d skill=lousy' would generate a post
325 chunk that looks like \&'name=daniel&skill=lousy'.
326
327 If you start the data with the letter @, the rest should be a file name to
328 read the data from, or - if you want curl to read the data from
329 stdin. Multiple files can also be specified. Posting data from a file
330 named 'foobar' would thus be done with \fI--data\fP @foobar. When --data is
331 told to read from a file like that, carriage returns and newlines will be
332 stripped out.
333 .IP "-D, --dump-header <file>"
334 Write the protocol headers to the specified file.
335
336 This option is handy to use when you want to store the headers that an HTTP
337 site sends to you. Cookies from the headers could then be read in a second
338 curl invocation by using the \fI-b, --cookie\fP option! The
339 \fI-c, --cookie-jar\fP option is a better way to store cookies.
340
341 When used in FTP, the FTP server response lines are considered being "headers"
342 and thus are saved there.
343
344 If this option is used several times, the last one will be used.
345 .IP "--data-ascii <data>"
346 See \fI-d, --data\fP.
347 .IP "--data-binary <data>"
348 (HTTP) This posts data exactly as specified with no extra processing
349 whatsoever.
350
351 If you start the data with the letter @, the rest should be a filename.  Data
352 is posted in a similar manner as \fI--data-ascii\fP does, except that newlines
353 and carriage returns are preserved and conversions are never done.
354
355 If this option is used several times, the ones following the first will append
356 data as described in \fI-d, --data\fP.
357 .IP "--data-urlencode <data>"
358 (HTTP) This posts data, similar to the other --data options with the exception
359 that this performs URL-encoding. (Added in 7.18.0)
360
361 To be CGI-compliant, the <data> part should begin with a \fIname\fP followed
362 by a separator and a content specification. The <data> part can be passed to
363 curl using one of the following syntaxes:
364 .RS
365 .IP "content"
366 This will make curl URL-encode the content and pass that on. Just be careful
367 so that the content doesn't contain any = or @ symbols, as that will then make
368 the syntax match one of the other cases below!
369 .IP "=content"
370 This will make curl URL-encode the content and pass that on. The preceding =
371 symbol is not included in the data.
372 .IP "name=content"
373 This will make curl URL-encode the content part and pass that on. Note that
374 the name part is expected to be URL-encoded already.
375 .IP "@filename"
376 This will make curl load data from the given file (including any newlines),
377 URL-encode that data and pass it on in the POST.
378 .IP "name@filename"
379 This will make curl load data from the given file (including any newlines),
380 URL-encode that data and pass it on in the POST. The name part gets an equal
381 sign appended, resulting in \fIname=urlencoded-file-content\fP. Note that the
382 name is expected to be URL-encoded already.
383 .RE
384 .IP "--delegation LEVEL"
385 Set \fILEVEL\fP to tell the server what it is allowed to delegate when it
386 comes to user credentials. Used with GSS/kerberos.
387 .RS
388 .IP "none"
389 Don't allow any delegation.
390 .IP "policy"
391 Delegates if and only if the OK-AS-DELEGATE flag is set in the Kerberos
392 service ticket, which is a matter of realm policy.
393 .IP "always"
394 Unconditionally allow the server to delegate.
395 .RE
396 .IP "--digest"
397 (HTTP) Enables HTTP Digest authentication. This is an authentication scheme
398 that prevents the password from being sent over the wire in clear text. Use
399 this in combination with the normal \fI-u, --user\fP option to set user name
400 and password. See also \fI--ntlm\fP, \fI--negotiate\fP and \fI--anyauth\fP for
401 related options.
402
403 If this option is used several times, only the first one is used.
404 .IP "--disable-eprt"
405 (FTP) Tell curl to disable the use of the EPRT and LPRT commands when doing
406 active FTP transfers. Curl will normally always first attempt to use EPRT,
407 then LPRT before using PORT, but with this option, it will use PORT right
408 away. EPRT and LPRT are extensions to the original FTP protocol, and may not
409 work on all servers, but they enable more functionality in a better way than
410 the traditional PORT command.
411
412 \fB--eprt\fP can be used to explicitly enable EPRT again and \fB--no-eprt\fP
413 is an alias for \fB--disable-eprt\fP.
414
415 Disabling EPRT only changes the active behavior. If you want to switch to
416 passive mode you need to not use \fI-P, --ftp-port\fP or force it with
417 \fI--ftp-pasv\fP.
418 .IP "--disable-epsv"
419 (FTP) Tell curl to disable the use of the EPSV command when doing passive FTP
420 transfers. Curl will normally always first attempt to use EPSV before PASV,
421 but with this option, it will not try using EPSV.
422
423 \fB--epsv\fP can be used to explicitly enable EPSV again and \fB--no-epsv\fP
424 is an alias for \fB--disable-epsv\fP.
425
426 Disabling EPSV only changes the passive behavior. If you want to switch to
427 active mode you need to use \fI-P, --ftp-port\fP.
428 .IP "--dns-interface <interface>"
429 Tell curl to send outgoing DNS requests through <interface>. This option
430 is a counterpart to \fI--interface\fP (which does not affect DNS). The
431 supplied string must be an interface name (not an address).
432
433 This option requires that libcurl was built with a resolver backend that
434 supports this operation. The c-ares backend is the only such one. (Added in
435 7.33.0)
436 .IP "--dns-ipv4-addr <ip-address>"
437 Tell curl to bind to <ip-address> when making IPv4 DNS requests, so that
438 the DNS requests originate from this address. The argument should be a
439 single IPv4 address.
440
441 This option requires that libcurl was built with a resolver backend that
442 supports this operation. The c-ares backend is the only such one.  (Added in
443 7.33.0)
444 .IP "--dns-ipv6-addr <ip-address>"
445 Tell curl to bind to <ip-address> when making IPv6 DNS requests, so that
446 the DNS requests originate from this address. The argument should be a
447 single IPv6 address.
448
449 This option requires that libcurl was built with a resolver backend that
450 supports this operation. The c-ares backend is the only such one.  (Added in
451 7.33.0)
452 .IP "--dns-servers <ip-address,ip-address>"
453 Set the list of DNS servers to be used instead of the system default.
454 The list of IP addresses should be separated with commas. Port numbers
455 may also optionally be given as \fI:<port-number>\fP after each IP
456 address.
457
458 This option requires that libcurl was built with a resolver backend that
459 supports this operation. The c-ares backend is the only such one.  (Added in
460 7.33.0)
461 .IP "-e, --referer <URL>"
462 (HTTP) Sends the "Referrer Page" information to the HTTP server. This can also
463 be set with the \fI-H, --header\fP flag of course.  When used with
464 \fI-L, --location\fP you can append ";auto" to the --referer URL to make curl
465 automatically set the previous URL when it follows a Location: header. The
466 \&";auto" string can be used alone, even if you don't set an initial --referer.
467
468 If this option is used several times, the last one will be used.
469 .IP "-E, --cert <certificate[:password]>"
470 (SSL) Tells curl to use the specified client certificate file when getting a
471 file with HTTPS, FTPS or another SSL-based protocol. The certificate must be
472 in PKCS#12 format if using Secure Transport, or PEM format if using any other
473 engine.  If the optional password isn't specified, it will be queried
474 for on the terminal. Note that this option assumes a \&"certificate" file that
475 is the private key and the private certificate concatenated! See \fI--cert\fP
476 and \fI--key\fP to specify them independently.
477
478 If curl is built against the NSS SSL library then this option can tell
479 curl the nickname of the certificate to use within the NSS database defined
480 by the environment variable SSL_DIR (or by default /etc/pki/nssdb). If the
481 NSS PEM PKCS#11 module (libnsspem.so) is available then PEM files may be
482 loaded. If you want to use a file from the current directory, please precede
483 it with "./" prefix, in order to avoid confusion with a nickname.  If the
484 nickname contains ":", it needs to be preceded by "\\" so that it is not
485 recognized as password delimiter.  If the nickname contains "\\", it needs to
486 be escaped as "\\\\" so that it is not recognized as an escape character.
487
488 (iOS and Mac OS X only) If curl is built against Secure Transport, then the
489 certificate string can either be the name of a certificate/private key in the
490 system or user keychain, or the path to a PKCS#12-encoded certificate and
491 private key. If you want to use a file from the current directory, please
492 precede it with "./" prefix, in order to avoid confusion with a nickname.
493
494 If this option is used several times, the last one will be used.
495 .IP "--engine <name>"
496 Select the OpenSSL crypto engine to use for cipher
497 operations. Use \fI--engine list\fP to print a list of build-time supported
498 engines. Note that not all (or none) of the engines may be available at
499 run-time.
500 .IP "--environment"
501 (RISC OS ONLY) Sets a range of environment variables, using the names the
502 \fI-w\fP option supports, to allow easier extraction of useful information
503 after having run curl.
504 .IP "--egd-file <file>"
505 (SSL) Specify the path name to the Entropy Gathering Daemon socket. The socket
506 is used to seed the random engine for SSL connections. See also the
507 \fI--random-file\fP option.
508 .IP "--cert-type <type>"
509 (SSL) Tells curl what certificate type the provided certificate is in. PEM,
510 DER and ENG are recognized types.  If not specified, PEM is assumed.
511
512 If this option is used several times, the last one will be used.
513 .IP "--cacert <CA certificate>"
514 (SSL) Tells curl to use the specified certificate file to verify the peer. The
515 file may contain multiple CA certificates. The certificate(s) must be in PEM
516 format. Normally curl is built to use a default file for this, so this option
517 is typically used to alter that default file.
518
519 curl recognizes the environment variable named 'CURL_CA_BUNDLE' if it is
520 set, and uses the given path as a path to a CA cert bundle. This option
521 overrides that variable.
522
523 The windows version of curl will automatically look for a CA certs file named
524 \'curl-ca-bundle.crt\', either in the same directory as curl.exe, or in the
525 Current Working Directory, or in any folder along your PATH.
526
527 If curl is built against the NSS SSL library, the NSS PEM PKCS#11 module
528 (libnsspem.so) needs to be available for this option to work properly.
529
530 If this option is used several times, the last one will be used.
531 .IP "--capath <CA certificate directory>"
532 (SSL) Tells curl to use the specified certificate directory to verify the
533 peer. Multiple paths can be provided by separating them with ":" (e.g.
534 \&"path1:path2:path3"). The certificates must be in PEM format, and if curl is
535 built against OpenSSL, the directory must have been processed using the
536 c_rehash utility supplied with OpenSSL. Using \fI--capath\fP can allow
537 OpenSSL-powered curl to make SSL-connections much more efficiently than using
538 \fI--cacert\fP if the \fI--cacert\fP file contains many CA certificates.
539
540 If this option is set, the default capath value will be ignored, and if it is
541 used several times, the last one will be used.
542 .IP "--pinnedpubkey <pinned public key>"
543 (SSL) Tells curl to use the specified public key file to verify the peer. The
544 file must contain a single public key in PEM or DER format.
545
546 When negotiating a TLS or SSL connection, the server sends a certificate
547 indicating its identity. A public key is extracted from this certificate and
548 if it does not exactly match the public key provided to this option, curl will
549 abort the connection before sending or receiving any data.
550
551 This is currently only implemented in the OpenSSL, GnuTLS and GSKit backends.
552
553 If this option is used several times, the last one will be used.
554 (Added in 7.39.0)
555 .IP "--cert-status"
556 (SSL) Tells curl to verify the status of the server certificate by using the
557 Certificate Status Request (aka. OCSP stapling) TLS extension.
558
559 If this option is enabled and the server sends an invalid (e.g. expired)
560 response, if the response suggests that the server certificate has been revoked,
561 or no response at all is received, the verification fails.
562
563 This is currently only implemented in the GnuTLS and NSS backends.
564 (Added in 7.41.0)
565 .IP "-f, --fail"
566 (HTTP) Fail silently (no output at all) on server errors. This is mostly done
567 to better enable scripts etc to better deal with failed attempts. In normal
568 cases when an HTTP server fails to deliver a document, it returns an HTML
569 document stating so (which often also describes why and more). This flag will
570 prevent curl from outputting that and return error 22.
571
572 This method is not fail-safe and there are occasions where non-successful
573 response codes will slip through, especially when authentication is involved
574 (response codes 401 and 407).
575 .IP "-F, --form <name=content>"
576 (HTTP) This lets curl emulate a filled-in form in which a user has pressed the
577 submit button. This causes curl to POST data using the Content-Type
578 multipart/form-data according to RFC 2388. This enables uploading of binary
579 files etc. To force the 'content' part to be a file, prefix the file name with
580 an @ sign. To just get the content part from a file, prefix the file name with
581 the symbol <. The difference between @ and < is then that @ makes a file get
582 attached in the post as a file upload, while the < makes a text field and just
583 get the contents for that text field from a file.
584
585 Example, to send your password file to the server, where
586 \&'password' is the name of the form-field to which /etc/passwd will be the
587 input:
588
589 \fBcurl\fP -F password=@/etc/passwd www.mypasswords.com
590
591 To read content from stdin instead of a file, use - as the filename. This goes
592 for both @ and < constructs.
593
594 You can also tell curl what Content-Type to use by using 'type=', in a manner
595 similar to:
596
597 \fBcurl\fP -F "web=@index.html;type=text/html" url.com
598
599 or
600
601 \fBcurl\fP -F "name=daniel;type=text/foo" url.com
602
603 You can also explicitly change the name field of a file upload part by setting
604 filename=, like this:
605
606 \fBcurl\fP -F "file=@localfile;filename=nameinpost" url.com
607
608 If filename/path contains ',' or ';', it must be quoted by double-quotes like:
609
610 \fBcurl\fP -F "file=@\\"localfile\\";filename=\\"nameinpost\\"" url.com
611
612 or
613
614 \fBcurl\fP -F 'file=@"localfile";filename="nameinpost"' url.com
615
616 Note that if a filename/path is quoted by double-quotes, any double-quote
617 or backslash within the filename must be escaped by backslash.
618
619 See further examples and details in the MANUAL.
620
621 This option can be used multiple times.
622 .IP "--ftp-account [data]"
623 (FTP) When an FTP server asks for "account data" after user name and password
624 has been provided, this data is sent off using the ACCT command. (Added in
625 7.13.0)
626
627 If this option is used several times, the last one will be used.
628 .IP "--ftp-alternative-to-user <command>"
629 (FTP) If authenticating with the USER and PASS commands fails, send this
630 command.  When connecting to Tumbleweed's Secure Transport server over FTPS
631 using a client certificate, using "SITE AUTH" will tell the server to retrieve
632 the username from the certificate. (Added in 7.15.5)
633 .IP "--ftp-create-dirs"
634 (FTP/SFTP) When an FTP or SFTP URL/operation uses a path that doesn't
635 currently exist on the server, the standard behavior of curl is to
636 fail. Using this option, curl will instead attempt to create missing
637 directories.
638 .IP "--ftp-method [method]"
639 (FTP) Control what method curl should use to reach a file on an FTP(S)
640 server. The method argument should be one of the following alternatives:
641 .RS
642 .IP multicwd
643 curl does a single CWD operation for each path part in the given URL. For deep
644 hierarchies this means very many commands. This is how RFC 1738 says it should
645 be done. This is the default but the slowest behavior.
646 .IP nocwd
647 curl does no CWD at all. curl will do SIZE, RETR, STOR etc and give a full
648 path to the server for all these commands. This is the fastest behavior.
649 .IP singlecwd
650 curl does one CWD with the full target directory and then operates on the file
651 \&"normally" (like in the multicwd case). This is somewhat more standards
652 compliant than 'nocwd' but without the full penalty of 'multicwd'.
653 .RE
654 (Added in 7.15.1)
655 .IP "--ftp-pasv"
656 (FTP) Use passive mode for the data connection. Passive is the internal default
657 behavior, but using this option can be used to override a previous
658 \fI-P/-ftp-port\fP option. (Added in 7.11.0)
659
660 If this option is used several times, only the first one is used. Undoing an
661 enforced passive really isn't doable but you must then instead enforce the
662 correct \fI-P, --ftp-port\fP again.
663
664 Passive mode means that curl will try the EPSV command first and then PASV,
665 unless \fI--disable-epsv\fP is used.
666 .IP "--ftp-skip-pasv-ip"
667 (FTP) Tell curl to not use the IP address the server suggests in its response
668 to curl's PASV command when curl connects the data connection. Instead curl
669 will re-use the same IP address it already uses for the control
670 connection. (Added in 7.14.2)
671
672 This option has no effect if PORT, EPRT or EPSV is used instead of PASV.
673 .IP "--ftp-pret"
674 (FTP) Tell curl to send a PRET command before PASV (and EPSV). Certain
675 FTP servers, mainly drftpd, require this non-standard command for
676 directory listings as well as up and downloads in PASV mode.
677 (Added in 7.20.x)
678 .IP "--ftp-ssl-ccc"
679 (FTP) Use CCC (Clear Command Channel)
680 Shuts down the SSL/TLS layer after authenticating. The rest of the
681 control channel communication will be unencrypted. This allows
682 NAT routers to follow the FTP transaction. The default mode is
683 passive. See \fI--ftp-ssl-ccc-mode\fP for other modes.
684 (Added in 7.16.1)
685 .IP "--ftp-ssl-ccc-mode [active/passive]"
686 (FTP) Use CCC (Clear Command Channel)
687 Sets the CCC mode. The passive mode will not initiate the shutdown, but
688 instead wait for the server to do it, and will not reply to the
689 shutdown from the server. The active mode initiates the shutdown and
690 waits for a reply from the server.
691 (Added in 7.16.2)
692 .IP "--ftp-ssl-control"
693 (FTP) Require SSL/TLS for the FTP login, clear for transfer.  Allows secure
694 authentication, but non-encrypted data transfers for efficiency.  Fails the
695 transfer if the server doesn't support SSL/TLS.  (Added in 7.16.0)
696 that can still be used but will be removed in a future version.
697 .IP "--form-string <name=string>"
698 (HTTP) Similar to \fI--form\fP except that the value string for the named
699 parameter is used literally. Leading \&'@' and \&'<' characters, and the
700 \&';type=' string in the value have no special meaning. Use this in preference
701 to \fI--form\fP if there's any possibility that the string value may
702 accidentally trigger the \&'@' or \&'<' features of \fI--form\fP.
703 .IP "-g, --globoff"
704 This option switches off the "URL globbing parser". When you set this option,
705 you can specify URLs that contain the letters {}[] without having them being
706 interpreted by curl itself. Note that these letters are not normal legal URL
707 contents but they should be encoded according to the URI standard.
708 .IP "-G, --get"
709 When used, this option will make all data specified with \fI-d, --data\fP,
710 \fI--data-binary\fP or \fI--data-urlencode\fP to be used in an HTTP GET
711 request instead of the POST request that otherwise would be used. The data
712 will be appended to the URL with a '?' separator.
713
714 If used in combination with -I, the POST data will instead be appended to the
715 URL with a HEAD request.
716
717 If this option is used several times, only the first one is used. This is
718 because undoing a GET doesn't make sense, but you should then instead enforce
719 the alternative method you prefer.
720 .IP "-H, --header <header>"
721 (HTTP) Extra header to include in the request when sending HTTP to a
722 server. You may specify any number of extra headers. Note that if you should
723 add a custom header that has the same name as one of the internal ones curl
724 would use, your externally set header will be used instead of the internal
725 one. This allows you to make even trickier stuff than curl would normally
726 do. You should not replace internally set headers without knowing perfectly
727 well what you're doing. Remove an internal header by giving a replacement
728 without content on the right side of the colon, as in: -H \&"Host:". If you
729 send the custom header with no-value then its header must be terminated with a
730 semicolon, such as \-H \&"X-Custom-Header;" to send "X-Custom-Header:".
731
732 curl will make sure that each header you add/replace is sent with the proper
733 end-of-line marker, you should thus \fBnot\fP add that as a part of the header
734 content: do not add newlines or carriage returns, they will only mess things up
735 for you.
736
737 See also the \fI-A, --user-agent\fP and \fI-e, --referer\fP options.
738
739 Starting in 7.37.0, you need \fI--proxy-header\fP to send custom headers
740 intended for a proxy.
741
742 Example:
743
744 \&# curl -H "X-First-Name: Joe" http://192.168.0.1/
745
746 This option can be used multiple times to add/replace/remove multiple headers.
747 .IP "--hostpubmd5 <md5>"
748 (SCP/SFTP) Pass a string containing 32 hexadecimal digits. The string should
749 be the 128 bit MD5 checksum of the remote host's public key, curl will refuse
750 the connection with the host unless the md5sums match. (Added in 7.17.1)
751 .IP "--ignore-content-length"
752 (HTTP)
753 Ignore the Content-Length header. This is particularly useful for servers
754 running Apache 1.x, which will report incorrect Content-Length for files
755 larger than 2 gigabytes.
756 .IP "-i, --include"
757 (HTTP) Include the HTTP-header in the output. The HTTP-header includes things
758 like server-name, date of the document, HTTP-version and more...
759 .IP "-I, --head"
760 (HTTP/FTP/FILE)
761 Fetch the HTTP-header only! HTTP-servers feature the command HEAD
762 which this uses to get nothing but the header of a document. When used
763 on an FTP or FILE file, curl displays the file size and last modification
764 time only.
765 .IP "--interface <name>"
766 Perform an operation using a specified interface. You can enter interface
767 name, IP address or host name. An example could look like:
768
769  curl --interface eth0:1 http://www.netscape.com/
770
771 If this option is used several times, the last one will be used.
772 .IP "-j, --junk-session-cookies"
773 (HTTP) When curl is told to read cookies from a given file, this option will
774 make it discard all "session cookies". This will basically have the same effect
775 as if a new session is started. Typical browsers always discard session
776 cookies when they're closed down.
777 .IP "-J, --remote-header-name"
778 (HTTP) This option tells the \fI-O, --remote-name\fP option to use the
779 server-specified Content-Disposition filename instead of extracting a filename
780 from the URL.
781
782 There's no attempt to decode %-sequences (yet) in the provided file name, so
783 this option may provide you with rather unexpected file names.
784 .IP "-k, --insecure"
785 (SSL) This option explicitly allows curl to perform "insecure" SSL connections
786 and transfers. All SSL connections are attempted to be made secure by using
787 the CA certificate bundle installed by default. This makes all connections
788 considered "insecure" fail unless \fI-k, --insecure\fP is used.
789
790 See this online resource for further details:
791 \fBhttp://curl.haxx.se/docs/sslcerts.html\fP
792 .IP "-K, --config <config file>"
793 Specify which config file to read curl arguments from. The config file is a
794 text file in which command line arguments can be written which then will be
795 used as if they were written on the actual command line.
796
797 Options and their parameters must be specified on the same config file line,
798 separated by whitespace, colon, or the equals sign. Long option names can
799 optionally be given in the config file without the initial double dashes and
800 if so, the colon or equals characters can be used as separators. If the option
801 is specified with one or two dashes, there can be no colon or equals character
802 between the option and its parameter.
803
804 If the parameter is to contain whitespace, the parameter must be enclosed
805 within quotes. Within double quotes, the following escape sequences are
806 available: \\\\, \\", \\t, \\n, \\r and \\v. A backslash preceding any other
807 letter is ignored. If the first column of a config line is a '#' character,
808 the rest of the line will be treated as a comment. Only write one option per
809 physical line in the config file.
810
811 Specify the filename to -K, --config as '-' to make curl read the file from
812 stdin.
813
814 Note that to be able to specify a URL in the config file, you need to specify
815 it using the \fI--url\fP option, and not by simply writing the URL on its own
816 line. So, it could look similar to this:
817
818 url = "http://curl.haxx.se/docs/"
819
820 When curl is invoked, it always (unless \fI-q\fP is used) checks for a default
821 config file and uses it if found. The default config file is checked for in
822 the following places in this order:
823
824 1) curl tries to find the "home dir": It first checks for the CURL_HOME and
825 then the HOME environment variables. Failing that, it uses getpwuid() on
826 Unix-like systems (which returns the home dir given the current user in your
827 system). On Windows, it then checks for the APPDATA variable, or as a last
828 resort the '%USERPROFILE%\\Application Data'.
829
830 2) On windows, if there is no _curlrc file in the home dir, it checks for one
831 in the same dir the curl executable is placed. On Unix-like systems, it will
832 simply try to load .curlrc from the determined home dir.
833
834 .nf
835 # --- Example file ---
836 # this is a comment
837 url = "curl.haxx.se"
838 output = "curlhere.html"
839 user-agent = "superagent/1.0"
840
841 # and fetch another URL too
842 url = "curl.haxx.se/docs/manpage.html"
843 -O
844 referer = "http://nowhereatall.com/"
845 # --- End of example file ---
846 .fi
847
848 This option can be used multiple times to load multiple config files.
849 .IP "--keepalive-time <seconds>"
850 This option sets the time a connection needs to remain idle before sending
851 keepalive probes and the time between individual keepalive probes. It is
852 currently effective on operating systems offering the TCP_KEEPIDLE and
853 TCP_KEEPINTVL socket options (meaning Linux, recent AIX, HP-UX and more). This
854 option has no effect if \fI--no-keepalive\fP is used. (Added in 7.18.0)
855
856 If this option is used several times, the last one will be used. If
857 unspecified, the option defaults to 60 seconds.
858 .IP "--key <key>"
859 (SSL/SSH) Private key file name. Allows you to provide your private key in this
860 separate file. For SSH, if not specified, curl tries the following candidates
861 in order: '~/.ssh/id_rsa', '~/.ssh/id_dsa', './id_rsa', './id_dsa'.
862
863 If this option is used several times, the last one will be used.
864 .IP "--key-type <type>"
865 (SSL) Private key file type. Specify which type your \fI--key\fP provided
866 private key is. DER, PEM, and ENG are supported. If not specified, PEM is
867 assumed.
868
869 If this option is used several times, the last one will be used.
870 .IP "--krb <level>"
871 (FTP) Enable Kerberos authentication and use. The level must be entered and
872 should be one of 'clear', 'safe', 'confidential', or 'private'. Should you use
873 a level that is not one of these, 'private' will instead be used.
874
875 This option requires a library built with kerberos4 support. This is not
876 very common. Use \fI-V, --version\fP to see if your curl supports it.
877
878 If this option is used several times, the last one will be used.
879 .IP "-l, --list-only"
880 (FTP)
881 When listing an FTP directory, this switch forces a name-only view. This is
882 especially useful if the user wants to machine-parse the contents of an FTP
883 directory since the normal directory view doesn't use a standard look or
884 format. When used like this, the option causes a NLST command to be sent to
885 the server instead of LIST.
886
887 Note: Some FTP servers list only files in their response to NLST; they do not
888 include sub-directories and symbolic links.
889
890 (POP3)
891 When retrieving a specific email from POP3, this switch forces a LIST command
892 to be performed instead of RETR. This is particularly useful if the user wants
893 to see if a specific message id exists on the server and what size it is.
894
895 Note: When combined with \fI-X, --request <command>\fP, this option can be used
896 to send an UIDL command instead, so the user may use the email's unique
897 identifier rather than it's message id to make the request. (Added in 7.21.5)
898 .IP "-L, --location"
899 (HTTP/HTTPS) If the server reports that the requested page has moved to a
900 different location (indicated with a Location: header and a 3XX response code),
901 this option will make curl redo the request on the new place. If used together
902 with \fI-i, --include\fP or \fI-I, --head\fP, headers from all requested pages
903 will be shown. When authentication is used, curl only sends its credentials to
904 the initial host. If a redirect takes curl to a different host, it won't be
905 able to intercept the user+password. See also \fI--location-trusted\fP on how
906 to change this. You can limit the amount of redirects to follow by using the
907 \fI--max-redirs\fP option.
908
909 When curl follows a redirect and the request is not a plain GET (for example
910 POST or PUT), it will do the following request with a GET if the HTTP response
911 was 301, 302, or 303. If the response code was any other 3xx code, curl will
912 re-send the following request using the same unmodified method.
913
914 You can tell curl to not change the non-GET request method to GET after a 30x
915 response by using the dedicated options for that: \fI--post301\fP,
916 \fI--post302\fP and \fI-post303\fP.
917 .IP "--libcurl <file>"
918 Append this option to any ordinary curl command line, and you will get a
919 libcurl-using C source code written to the file that does the equivalent
920 of what your command-line operation does!
921
922 If this option is used several times, the last given file name will be
923 used. (Added in 7.16.1)
924 .IP "--limit-rate <speed>"
925 Specify the maximum transfer rate you want curl to use - for both downloads
926 and uploads. This feature is useful if you have a limited pipe and you'd like
927 your transfer not to use your entire bandwidth. To make it slower than it
928 otherwise would be.
929
930 The given speed is measured in bytes/second, unless a suffix is appended.
931 Appending 'k' or 'K' will count the number as kilobytes, 'm' or M' makes it
932 megabytes, while 'g' or 'G' makes it gigabytes. Examples: 200K, 3m and 1G.
933
934 The given rate is the average speed counted during the entire transfer. It
935 means that curl might use higher transfer speeds in short bursts, but over
936 time it uses no more than the given rate.
937
938 If you also use the \fI-Y, --speed-limit\fP option, that option will take
939 precedence and might cripple the rate-limiting slightly, to help keeping the
940 speed-limit logic working.
941
942 If this option is used several times, the last one will be used.
943 .IP "--local-port <num>[-num]"
944 Set a preferred number or range of local port numbers to use for the
945 connection(s).  Note that port numbers by nature are a scarce resource that
946 will be busy at times so setting this range to something too narrow might
947 cause unnecessary connection setup failures. (Added in 7.15.2)
948 .IP "--location-trusted"
949 (HTTP/HTTPS) Like \fI-L, --location\fP, but will allow sending the name +
950 password to all hosts that the site may redirect to. This may or may not
951 introduce a security breach if the site redirects you to a site to which
952 you'll send your authentication info (which is plaintext in the case of HTTP
953 Basic authentication).
954 .IP "-m, --max-time <seconds>"
955 Maximum time in seconds that you allow the whole operation to take.  This is
956 useful for preventing your batch jobs from hanging for hours due to slow
957 networks or links going down.  Since 7.32.0, this option accepts decimal
958 values, but the actual timeout will decrease in accuracy as the specified
959 timeout increases in decimal precision.  See also the \fI--connect-timeout\fP
960 option.
961
962 If this option is used several times, the last one will be used.
963 .IP "--login-options <options>"
964 Specify the login options to use during server authentication.
965
966 You can use the login options to specify protocol specific options that may
967 be used during authentication. At present only IMAP, POP3 and SMTP support
968 login options. For more information about the login options please see
969 RFC 2384, RFC 5092 and IETF draft draft-earhart-url-smtp-00.txt (Added in
970 7.34.0).
971
972 If this option is used several times, the last one will be used.
973 .IP "--mail-auth <address>"
974 (SMTP) Specify a single address. This will be used to specify the
975 authentication address (identity) of a submitted message that is being relayed
976 to another server.
977
978 (Added in 7.25.0)
979 .IP "--mail-from <address>"
980 (SMTP) Specify a single address that the given mail should get sent from.
981
982 (Added in 7.20.0)
983 .IP "--max-filesize <bytes>"
984 Specify the maximum size (in bytes) of a file to download. If the file
985 requested is larger than this value, the transfer will not start and curl will
986 return with exit code 63.
987
988 \fBNOTE:\fP The file size is not always known prior to download, and for such
989 files this option has no effect even if the file transfer ends up being larger
990 than this given limit. This concerns both FTP and HTTP transfers.
991 .IP "--mail-rcpt <address>"
992 (SMTP) Specify a single address, user name or mailing list name.
993
994 When performing a mail transfer, the recipient should specify a valid email
995 address to send the mail to. (Added in 7.20.0)
996
997 When performing an address verification (VRFY command), the recipient should be
998 specified as the user name or user name and domain (as per Section 3.5 of
999 RFC5321). (Added in 7.34.0)
1000
1001 When performing a mailing list expand (EXPN command), the recipient should be
1002 specified using the mailing list name, such as "Friends" or "London-Office".
1003 (Added in 7.34.0)
1004 .IP "--max-redirs <num>"
1005 Set maximum number of redirection-followings allowed. If \fI-L, --location\fP
1006 is used, this option can be used to prevent curl from following redirections
1007 \&"in absurdum". By default, the limit is set to 50 redirections. Set this
1008 option to -1 to make it limitless.
1009
1010 If this option is used several times, the last one will be used.
1011 .IP "--metalink"
1012 This option can tell curl to parse and process a given URI as Metalink file
1013 (both version 3 and 4 (RFC 5854) are supported) and make use of the mirrors
1014 listed within for failover if there are errors (such as the file or server not
1015 being available). It will also verify the hash of the file after the download
1016 completes. The Metalink file itself is downloaded and processed in memory and
1017 not stored in the local file system.
1018
1019 Example to use a remote Metalink file:
1020
1021 \fBcurl\fP --metalink http://www.example.com/example.metalink
1022
1023 To use a Metalink file in the local file system, use FILE protocol
1024 (file://):
1025
1026 \fBcurl\fP --metalink file://example.metalink
1027
1028 Please note that if FILE protocol is disabled, there is no way to use
1029 a local Metalink file at the time of this writing. Also note that if
1030 \fI--metalink\fP and \fI--include\fP are used together, \fI--include\fP will be
1031 ignored. This is because including headers in the response will break
1032 Metalink parser and if the headers are included in the file described
1033 in Metalink file, hash check will fail.
1034
1035 (Added in 7.27.0, if built against the libmetalink library.)
1036 .IP "-n, --netrc"
1037 Makes curl scan the \fI.netrc\fP (\fI_netrc\fP on Windows) file in the user's
1038 home directory for login name and password. This is typically used for FTP on
1039 Unix. If used with HTTP, curl will enable user authentication. See
1040 .BR netrc(4)
1041 or
1042 .BR ftp(1)
1043 for details on the file format. Curl will not complain if that file
1044 doesn't have the right permissions (it should not be either world- or
1045 group-readable). The environment variable "HOME" is used to find the home
1046 directory.
1047
1048 A quick and very simple example of how to setup a \fI.netrc\fP to allow curl
1049 to FTP to the machine host.domain.com with user name \&'myself' and password
1050 \&'secret' should look similar to:
1051
1052 .B "machine host.domain.com login myself password secret"
1053 .IP "-N, --no-buffer"
1054 Disables the buffering of the output stream. In normal work situations, curl
1055 will use a standard buffered output stream that will have the effect that it
1056 will output the data in chunks, not necessarily exactly when the data arrives.
1057 Using this option will disable that buffering.
1058
1059 Note that this is the negated option name documented. You can thus use
1060 \fI--buffer\fP to enforce the buffering.
1061 .IP "--netrc-file"
1062 This option is similar to \fI--netrc\fP, except that you provide the path
1063 (absolute or relative) to the netrc file that Curl should use.
1064 You can only specify one netrc file per invocation. If several
1065 \fI--netrc-file\fP options are provided, only the \fBlast one\fP will be used.
1066 (Added in 7.21.5)
1067
1068 This option overrides any use of \fI--netrc\fP as they are mutually exclusive.
1069 It will also abide by \fI--netrc-optional\fP if specified.
1070
1071 .IP "--netrc-optional"
1072 Very similar to \fI--netrc\fP, but this option makes the .netrc usage
1073 \fBoptional\fP and not mandatory as the \fI--netrc\fP option does.
1074
1075 .IP "--negotiate"
1076 (HTTP) Enables Negotiate (SPNEGO) authentication.
1077
1078 If you want to enable Negotiate (SPNEGO) for proxy authentication, then use
1079 \fI--proxy-negotiate\fP.
1080
1081 This option requires a library built with GSS-API or SSPI support. Use \fI-V,
1082 --version\fP to see if your curl supports GSS-API/SSPI and SPNEGO.
1083
1084 When using this option, you must also provide a fake \fI-u, --user\fP option to
1085 activate the authentication code properly. Sending a '-u :' is enough as the
1086 user name and password from the \fI-u\fP option aren't actually used.
1087
1088 If this option is used several times, only the first one is used.
1089 .IP "--no-keepalive"
1090 Disables the use of keepalive messages on the TCP connection, as by default
1091 curl enables them.
1092
1093 Note that this is the negated option name documented. You can thus use
1094 \fI--keepalive\fP to enforce keepalive.
1095 .IP "--no-sessionid"
1096 (SSL) Disable curl's use of SSL session-ID caching.  By default all transfers
1097 are done using the cache. Note that while nothing should ever get hurt by
1098 attempting to reuse SSL session-IDs, there seem to be broken SSL
1099 implementations in the wild that may require you to disable this in order for
1100 you to succeed. (Added in 7.16.0)
1101
1102 Note that this is the negated option name documented. You can thus use
1103 \fI--sessionid\fP to enforce session-ID caching.
1104 .IP "--noproxy <no-proxy-list>"
1105 Comma-separated list of hosts which do not use a proxy, if one is specified.
1106 The only wildcard is a single * character, which matches all hosts, and
1107 effectively disables the proxy. Each name in this list is matched as either
1108 a domain which contains the hostname, or the hostname itself. For example,
1109 local.com would match local.com, local.com:80, and www.local.com, but not
1110 www.notlocal.com.  (Added in 7.19.4).
1111 .IP "--ntlm"
1112 (HTTP) Enables NTLM authentication. The NTLM authentication method was
1113 designed by Microsoft and is used by IIS web servers. It is a proprietary
1114 protocol, reverse-engineered by clever people and implemented in curl based
1115 on their efforts. This kind of behavior should not be endorsed, you should
1116 encourage everyone who uses NTLM to switch to a public and documented
1117 authentication method instead, such as Digest.
1118
1119 If you want to enable NTLM for your proxy authentication, then use
1120 \fI--proxy-ntlm\fP.
1121
1122 This option requires a library built with SSL support. Use
1123 \fI-V, --version\fP to see if your curl supports NTLM.
1124
1125 If this option is used several times, only the first one is used.
1126 .IP "-o, --output <file>"
1127 Write output to <file> instead of stdout. If you are using {} or [] to fetch
1128 multiple documents, you can use '#' followed by a number in the <file>
1129 specifier. That variable will be replaced with the current string for the URL
1130 being fetched. Like in:
1131
1132   curl http://{one,two}.site.com -o "file_#1.txt"
1133
1134 or use several variables like:
1135
1136   curl http://{site,host}.host[1-5].com -o "#1_#2"
1137
1138 You may use this option as many times as the number of URLs you have.
1139
1140 See also the \fI--create-dirs\fP option to create the local directories
1141 dynamically. Specifying the output as '-' (a single dash) will force the
1142 output to be done to stdout.
1143 .IP "-O, --remote-name"
1144 Write output to a local file named like the remote file we get. (Only the file
1145 part of the remote file is used, the path is cut off.)
1146
1147 The remote file name to use for saving is extracted from the given URL,
1148 nothing else.
1149
1150 Consequentially, the file will be saved in the current working directory. If
1151 you want the file saved in a different directory, make sure you change current
1152 working directory before you invoke curl with the \fB-O, --remote-name\fP flag!
1153
1154 There is no URL decoding done on the file name. If it has %20 or other URL
1155 encoded parts of the name, they will end up as-is as file name.
1156
1157 You may use this option as many times as the number of URLs you have.
1158 .IP "--oauth2-bearer"
1159 (IMAP, POP3, SMTP)
1160 Specify the Bearer Token for OAUTH 2.0 server authentication. The Bearer Token
1161 is used in conjunction with the user name which can be specified as part of the
1162 \fI--url\fP or \fI-u, --user\fP options.
1163
1164 The Bearer Token and user name are formatted according to RFC 6750.
1165
1166 If this option is used several times, the last one will be used.
1167 .IP "--proxy-header <header>"
1168 (HTTP) Extra header to include in the request when sending HTTP to a
1169 proxy. You may specify any number of extra headers. This is the equivalent
1170 option to \fI-H, --header\fP but is for proxy communication only like in
1171 CONNECT requests when you want a separate header sent to the proxy to what is
1172 sent to the actual remote host.
1173
1174 curl will make sure that each header you add/replace is sent with the proper
1175 end-of-line marker, you should thus \fBnot\fP add that as a part of the header
1176 content: do not add newlines or carriage returns, they will only mess things
1177 up for you.
1178
1179 Headers specified with this option will not be included in requests that curl
1180 knows will not be sent to a proxy.
1181
1182 This option can be used multiple times to add/replace/remove multiple headers.
1183
1184 (Added in 7.37.0)
1185 .IP "-p, --proxytunnel"
1186 When an HTTP proxy is used (\fI-x, --proxy\fP), this option will cause non-HTTP
1187 protocols to attempt to tunnel through the proxy instead of merely using it to
1188 do HTTP-like operations. The tunnel approach is made with the HTTP proxy
1189 CONNECT request and requires that the proxy allows direct connect to the
1190 remote port number curl wants to tunnel through to.
1191 .IP "-P, --ftp-port <address>"
1192 (FTP) Reverses the default initiator/listener roles when connecting with
1193 FTP. This switch makes curl use active mode. In practice, curl then tells the
1194 server to connect back to the client's specified address and port, while
1195 passive mode asks the server to setup an IP address and port for it to connect
1196 to. <address> should be one of:
1197 .RS
1198 .IP interface
1199 i.e "eth0" to specify which interface's IP address you want to use (Unix only)
1200 .IP "IP address"
1201 i.e "192.168.10.1" to specify the exact IP address
1202 .IP "host name"
1203 i.e "my.host.domain" to specify the machine
1204 .IP "-"
1205 make curl pick the same IP address that is already used for the control
1206 connection
1207 .RE
1208
1209 If this option is used several times, the last one will be used. Disable the
1210 use of PORT with \fI--ftp-pasv\fP. Disable the attempt to use the EPRT command
1211 instead of PORT by using \fI--disable-eprt\fP. EPRT is really PORT++.
1212
1213 Starting in 7.19.5, you can append \&":[start]-[end]\&" to the right of the
1214 address, to tell curl what TCP port range to use. That means you specify a
1215 port range, from a lower to a higher number. A single number works as well,
1216 but do note that it increases the risk of failure since the port may not be
1217 available.
1218 .IP "--pass <phrase>"
1219 (SSL/SSH) Passphrase for the private key
1220
1221 If this option is used several times, the last one will be used.
1222 .IP "--post301"
1223 (HTTP) Tells curl to respect RFC 2616/10.3.2 and not convert POST requests
1224 into GET requests when following a 301 redirection. The non-RFC behaviour is
1225 ubiquitous in web browsers, so curl does the conversion by default to maintain
1226 consistency. However, a server may require a POST to remain a POST after such
1227 a redirection. This option is meaningful only when using \fI-L, --location\fP
1228 (Added in 7.17.1)
1229 .IP "--post302"
1230 (HTTP) Tells curl to respect RFC 2616/10.3.2 and not convert POST requests
1231 into GET requests when following a 302 redirection. The non-RFC behaviour is
1232 ubiquitous in web browsers, so curl does the conversion by default to maintain
1233 consistency. However, a server may require a POST to remain a POST after such
1234 a redirection. This option is meaningful only when using \fI-L, --location\fP
1235 (Added in 7.19.1)
1236 .IP "--post303"
1237 (HTTP) Tells curl to respect RFC 2616/10.3.2 and not convert POST requests
1238 into GET requests when following a 303 redirection. The non-RFC behaviour is
1239 ubiquitous in web browsers, so curl does the conversion by default to maintain
1240 consistency. However, a server may require a POST to remain a POST after such
1241 a redirection. This option is meaningful only when using \fI-L, --location\fP
1242 (Added in 7.26.0)
1243 .IP "--proto <protocols>"
1244 Tells curl to use the listed protocols for its initial retrieval. Protocols
1245 are evaluated left to right, are comma separated, and are each a protocol
1246 name or 'all', optionally prefixed by zero or more modifiers. Available
1247 modifiers are:
1248 .RS
1249 .TP 3
1250 .B +
1251 Permit this protocol in addition to protocols already permitted (this is
1252 the default if no modifier is used).
1253 .TP
1254 .B -
1255 Deny this protocol, removing it from the list of protocols already permitted.
1256 .TP
1257 .B =
1258 Permit only this protocol (ignoring the list already permitted), though
1259 subject to later modification by subsequent entries in the comma separated
1260 list.
1261 .RE
1262 .IP
1263 For example:
1264 .RS
1265 .TP 15
1266 .B --proto -ftps
1267 uses the default protocols, but disables ftps
1268 .TP
1269 .B  --proto -all,https,+http
1270 only enables http and https
1271 .TP
1272 .B --proto =http,https
1273 also only enables http and https
1274 .RE
1275 .IP
1276 Unknown protocols produce a warning. This allows scripts to safely rely on
1277 being able to disable potentially dangerous protocols, without relying upon
1278 support for that protocol being built into curl to avoid an error.
1279
1280 This option can be used multiple times, in which case the effect is the same
1281 as concatenating the protocols into one instance of the option.
1282
1283 (Added in 7.20.2)
1284 .IP "--proto-redir <protocols>"
1285 Tells curl to use the listed protocols after a redirect. See --proto for
1286 how protocols are represented.
1287
1288 (Added in 7.20.2)
1289 .IP "--proxy-anyauth"
1290 Tells curl to pick a suitable authentication method when communicating with
1291 the given proxy. This might cause an extra request/response round-trip. (Added
1292 in 7.13.2)
1293 .IP "--proxy-basic"
1294 Tells curl to use HTTP Basic authentication when communicating with the given
1295 proxy. Use \fI--basic\fP for enabling HTTP Basic with a remote host. Basic is
1296 the default authentication method curl uses with proxies.
1297 .IP "--proxy-digest"
1298 Tells curl to use HTTP Digest authentication when communicating with the given
1299 proxy. Use \fI--digest\fP for enabling HTTP Digest with a remote host.
1300 .IP "--proxy-negotiate"
1301 Tells curl to use HTTP Negotiate (SPNEGO) authentication when communicating
1302 with the given proxy. Use \fI--negotiate\fP for enabling HTTP Negotiate (SPNEGO)
1303 with a remote host. (Added in 7.17.1)
1304 .IP "--proxy-ntlm"
1305 Tells curl to use HTTP NTLM authentication when communicating with the given
1306 proxy. Use \fI--ntlm\fP for enabling NTLM with a remote host.
1307 .IP "--proxy1.0 <proxyhost[:port]>"
1308 Use the specified HTTP 1.0 proxy. If the port number is not specified, it is
1309 assumed at port 1080.
1310
1311 The only difference between this and the HTTP proxy option (\fI-x, --proxy\fP),
1312 is that attempts to use CONNECT through the proxy will specify an HTTP 1.0
1313 protocol instead of the default HTTP 1.1.
1314 .IP "--pubkey <key>"
1315 (SSH) Public key file name. Allows you to provide your public key in this
1316 separate file.
1317
1318 If this option is used several times, the last one will be used.
1319
1320 (As of 7.39.0, curl attempts to automatically extract the public key from the
1321 private key file, so passing this option is generally not required. Note that
1322 this public key extraction requires libcurl to be linked against a copy of
1323 libssh2 1.2.8 or higher that is itself linked against OpenSSL.)
1324 .IP "-q"
1325 If used as the first parameter on the command line, the \fIcurlrc\fP config
1326 file will not be read and used. See the \fI-K, --config\fP for details on the
1327 default config file search path.
1328 .IP "-Q, --quote <command>"
1329 (FTP/SFTP) Send an arbitrary command to the remote FTP or SFTP server. Quote
1330 commands are sent BEFORE the transfer takes place (just after the initial PWD
1331 command in an FTP transfer, to be exact). To make commands take place after a
1332 successful transfer, prefix them with a dash '-'.  To make commands be sent
1333 after curl has changed the working directory, just before the transfer
1334 command(s), prefix the command with a '+' (this is only supported for
1335 FTP). You may specify any number of commands. If the server returns failure
1336 for one of the commands, the entire operation will be aborted. You must send
1337 syntactically correct FTP commands as RFC 959 defines to FTP servers, or one
1338 of the commands listed below to SFTP servers.  This option can be used
1339 multiple times. When speaking to an FTP server, prefix the command with an
1340 asterisk (*) to make curl continue even if the command fails as by default
1341 curl will stop at first failure.
1342
1343 SFTP is a binary protocol. Unlike for FTP, curl interprets SFTP quote commands
1344 itself before sending them to the server.  File names may be quoted
1345 shell-style to embed spaces or special characters.  Following is the list of
1346 all supported SFTP quote commands:
1347 .RS
1348 .IP "chgrp group file"
1349 The chgrp command sets the group ID of the file named by the file operand to
1350 the group ID specified by the group operand. The group operand is a decimal
1351 integer group ID.
1352 .IP "chmod mode file"
1353 The chmod command modifies the file mode bits of the specified file. The
1354 mode operand is an octal integer mode number.
1355 .IP "chown user file"
1356 The chown command sets the owner of the file named by the file operand to the
1357 user ID specified by the user operand. The user operand is a decimal
1358 integer user ID.
1359 .IP "ln source_file target_file"
1360 The ln and symlink commands create a symbolic link at the target_file location
1361 pointing to the source_file location.
1362 .IP "mkdir directory_name"
1363 The mkdir command creates the directory named by the directory_name operand.
1364 .IP "pwd"
1365 The pwd command returns the absolute pathname of the current working directory.
1366 .IP "rename source target"
1367 The rename command renames the file or directory named by the source
1368 operand to the destination path named by the target operand.
1369 .IP "rm file"
1370 The rm command removes the file specified by the file operand.
1371 .IP "rmdir directory"
1372 The rmdir command removes the directory entry specified by the directory
1373 operand, provided it is empty.
1374 .IP "symlink source_file target_file"
1375 See ln.
1376 .RE
1377 .IP "-r, --range <range>"
1378 (HTTP/FTP/SFTP/FILE) Retrieve a byte range (i.e a partial document) from a
1379 HTTP/1.1, FTP or SFTP server or a local FILE. Ranges can be specified
1380 in a number of ways.
1381 .RS
1382 .TP 10
1383 .B 0-499
1384 specifies the first 500 bytes
1385 .TP
1386 .B 500-999
1387 specifies the second 500 bytes
1388 .TP
1389 .B -500
1390 specifies the last 500 bytes
1391 .TP
1392 .B 9500-
1393 specifies the bytes from offset 9500 and forward
1394 .TP
1395 .B 0-0,-1
1396 specifies the first and last byte only(*)(H)
1397 .TP
1398 .B 500-700,600-799
1399 specifies 300 bytes from offset 500(H)
1400 .TP
1401 .B 100-199,500-599
1402 specifies two separate 100-byte ranges(*)(H)
1403 .RE
1404
1405 (*) = NOTE that this will cause the server to reply with a multipart
1406 response!
1407
1408 Only digit characters (0-9) are valid in the 'start' and 'stop' fields of the
1409 \&'start-stop' range syntax. If a non-digit character is given in the range,
1410 the server's response will be unspecified, depending on the server's
1411 configuration.
1412
1413 You should also be aware that many HTTP/1.1 servers do not have this feature
1414 enabled, so that when you attempt to get a range, you'll instead get the whole
1415 document.
1416
1417 FTP and SFTP range downloads only support the simple 'start-stop' syntax
1418 (optionally with one of the numbers omitted). FTP use depends on the extended
1419 FTP command SIZE.
1420
1421 If this option is used several times, the last one will be used.
1422 .IP "-R, --remote-time"
1423 When used, this will make curl attempt to figure out the timestamp of the
1424 remote file, and if that is available make the local file get that same
1425 timestamp.
1426 .IP "--random-file <file>"
1427 (SSL) Specify the path name to file containing what will be considered as
1428 random data. The data is used to seed the random engine for SSL connections.
1429 See also the \fI--egd-file\fP option.
1430 .IP "--raw"
1431 (HTTP) When used, it disables all internal HTTP decoding of content or transfer
1432 encodings and instead makes them passed on unaltered, raw. (Added in 7.16.2)
1433 .IP "--remote-name-all"
1434 This option changes the default action for all given URLs to be dealt with as
1435 if \fI-O, --remote-name\fP were used for each one. So if you want to disable
1436 that for a specific URL after \fI--remote-name-all\fP has been used, you must
1437 use "-o -" or \fI--no-remote-name\fP. (Added in 7.19.0)
1438 .IP "--resolve <host:port:address>"
1439 Provide a custom address for a specific host and port pair. Using this, you
1440 can make the curl requests(s) use a specified address and prevent the
1441 otherwise normally resolved address to be used. Consider it a sort of
1442 /etc/hosts alternative provided on the command line. The port number should be
1443 the number used for the specific protocol the host will be used for. It means
1444 you need several entries if you want to provide address for the same host but
1445 different ports.
1446
1447 This option can be used many times to add many host names to resolve.
1448
1449 (Added in 7.21.3)
1450 .IP "--retry <num>"
1451 If a transient error is returned when curl tries to perform a transfer, it
1452 will retry this number of times before giving up. Setting the number to 0
1453 makes curl do no retries (which is the default). Transient error means either:
1454 a timeout, an FTP 4xx response code or an HTTP 5xx response code.
1455
1456 When curl is about to retry a transfer, it will first wait one second and then
1457 for all forthcoming retries it will double the waiting time until it reaches
1458 10 minutes which then will be the delay between the rest of the retries.  By
1459 using \fI--retry-delay\fP you disable this exponential backoff algorithm. See
1460 also \fI--retry-max-time\fP to limit the total time allowed for
1461 retries. (Added in 7.12.3)
1462
1463 If this option is used several times, the last one will be used.
1464 .IP "--retry-delay <seconds>"
1465 Make curl sleep this amount of time before each retry when a transfer has
1466 failed with a transient error (it changes the default backoff time algorithm
1467 between retries). This option is only interesting if \fI--retry\fP is also
1468 used. Setting this delay to zero will make curl use the default backoff time.
1469 (Added in 7.12.3)
1470
1471 If this option is used several times, the last one will be used.
1472 .IP "--retry-max-time <seconds>"
1473 The retry timer is reset before the first transfer attempt. Retries will be
1474 done as usual (see \fI--retry\fP) as long as the timer hasn't reached this
1475 given limit. Notice that if the timer hasn't reached the limit, the request
1476 will be made and while performing, it may take longer than this given time
1477 period. To limit a single request\'s maximum time, use \fI-m, --max-time\fP.
1478 Set this option to zero to not timeout retries. (Added in 7.12.3)
1479
1480 If this option is used several times, the last one will be used.
1481 .IP "-s, --silent"
1482 Silent or quiet mode. Don't show progress meter or error messages.  Makes Curl
1483 mute. It will still output the data you ask for, potentially even to the
1484 terminal/stdout unless you redirect it.
1485 .IP "--sasl-ir"
1486 Enable initial response in SASL authentication.
1487 (Added in 7.31.0)
1488 .IP "-S, --show-error"
1489 When used with \fI-s\fP it makes curl show an error message if it fails.
1490 .IP "--ssl"
1491 (FTP, POP3, IMAP, SMTP) Try to use SSL/TLS for the connection.  Reverts to a
1492 non-secure connection if the server doesn't support SSL/TLS.  See also
1493 \fI--ftp-ssl-control\fP and \fI--ssl-reqd\fP for different levels of
1494 encryption required. (Added in 7.20.0)
1495
1496 This option was formerly known as \fI--ftp-ssl\fP (Added in 7.11.0). That
1497 option name can still be used but will be removed in a future version.
1498 .IP "--ssl-reqd"
1499 (FTP, POP3, IMAP, SMTP) Require SSL/TLS for the connection.  Terminates the
1500 connection if the server doesn't support SSL/TLS. (Added in 7.20.0)
1501
1502 This option was formerly known as \fI--ftp-ssl-reqd\fP (added in 7.15.5). That
1503 option name can still be used but will be removed in a future version.
1504 .IP "--ssl-allow-beast"
1505 (SSL) This option tells curl to not work around a security flaw in the SSL3
1506 and TLS1.0 protocols known as BEAST.  If this option isn't used, the SSL layer
1507 may use workarounds known to cause interoperability problems with some older
1508 SSL implementations. WARNING: this option loosens the SSL security, and by
1509 using this flag you ask for exactly that.  (Added in 7.25.0)
1510 .IP "--socks4 <host[:port]>"
1511 Use the specified SOCKS4 proxy. If the port number is not specified, it is
1512 assumed at port 1080. (Added in 7.15.2)
1513
1514 This option overrides any previous use of \fI-x, --proxy\fP, as they are
1515 mutually exclusive.
1516
1517 Since 7.21.7, this option is superfluous since you can specify a socks4 proxy
1518 with \fI-x, --proxy\fP using a socks4:// protocol prefix.
1519
1520 If this option is used several times, the last one will be used.
1521 .IP "--socks4a <host[:port]>"
1522 Use the specified SOCKS4a proxy. If the port number is not specified, it is
1523 assumed at port 1080. (Added in 7.18.0)
1524
1525 This option overrides any previous use of \fI-x, --proxy\fP, as they are
1526 mutually exclusive.
1527
1528 Since 7.21.7, this option is superfluous since you can specify a socks4a proxy
1529 with \fI-x, --proxy\fP using a socks4a:// protocol prefix.
1530
1531 If this option is used several times, the last one will be used.
1532 .IP "--socks5-hostname <host[:port]>"
1533 Use the specified SOCKS5 proxy (and let the proxy resolve the host name). If
1534 the port number is not specified, it is assumed at port 1080. (Added in
1535 7.18.0)
1536
1537 This option overrides any previous use of \fI-x, --proxy\fP, as they are
1538 mutually exclusive.
1539
1540 Since 7.21.7, this option is superfluous since you can specify a socks5
1541 hostname proxy with \fI-x, --proxy\fP using a socks5h:// protocol prefix.
1542
1543 If this option is used several times, the last one will be used. (This option
1544 was previously wrongly documented and used as --socks without the number
1545 appended.)
1546 .IP "--socks5 <host[:port]>"
1547 Use the specified SOCKS5 proxy - but resolve the host name locally. If the
1548 port number is not specified, it is assumed at port 1080.
1549
1550 This option overrides any previous use of \fI-x, --proxy\fP, as they are
1551 mutually exclusive.
1552
1553 Since 7.21.7, this option is superfluous since you can specify a socks5 proxy
1554 with \fI-x, --proxy\fP using a socks5:// protocol prefix.
1555
1556 If this option is used several times, the last one will be used. (This option
1557 was previously wrongly documented and used as --socks without the number
1558 appended.)
1559
1560 This option (as well as \fI--socks4\fP) does not work with IPV6, FTPS or LDAP.
1561 .IP "--socks5-gssapi-service <servicename>"
1562 The default service name for a socks server is rcmd/server-fqdn. This option
1563 allows you to change it.
1564
1565 Examples: --socks5 proxy-name \fI--socks5-gssapi-service\fP sockd would use
1566 sockd/proxy-name --socks5 proxy-name \fI--socks5-gssapi-service\fP
1567 sockd/real-name would use sockd/real-name for cases where the proxy-name does
1568 not match the principal name.  (Added in 7.19.4).
1569 .IP "--socks5-gssapi-nec"
1570 As part of the GSS-API negotiation a protection mode is negotiated. RFC 1961
1571 says in section 4.3/4.4 it should be protected, but the NEC reference
1572 implementation does not.  The option \fI--socks5-gssapi-nec\fP allows the
1573 unprotected exchange of the protection mode negotiation. (Added in 7.19.4).
1574 .IP "--stderr <file>"
1575 Redirect all writes to stderr to the specified file instead. If the file name
1576 is a plain '-', it is instead written to stdout.
1577
1578 If this option is used several times, the last one will be used.
1579 .IP "-t, --telnet-option <OPT=val>"
1580 Pass options to the telnet protocol. Supported options are:
1581
1582 TTYPE=<term> Sets the terminal type.
1583
1584 XDISPLOC=<X display> Sets the X display location.
1585
1586 NEW_ENV=<var,val> Sets an environment variable.
1587 .IP "-T, --upload-file <file>"
1588 This transfers the specified local file to the remote URL. If there is no file
1589 part in the specified URL, Curl will append the local file name. NOTE that you
1590 must use a trailing / on the last directory to really prove to Curl that there
1591 is no file name or curl will think that your last directory name is the remote
1592 file name to use. That will most likely cause the upload operation to fail. If
1593 this is used on an HTTP(S) server, the PUT command will be used.
1594
1595 Use the file name "-" (a single dash) to use stdin instead of a given file.
1596 Alternately, the file name "." (a single period) may be specified instead
1597 of "-" to use stdin in non-blocking mode to allow reading server output
1598 while stdin is being uploaded.
1599
1600 You can specify one -T for each URL on the command line. Each -T + URL pair
1601 specifies what to upload and to where. curl also supports "globbing" of the -T
1602 argument, meaning that you can upload multiple files to a single URL by using
1603 the same URL globbing style supported in the URL, like this:
1604
1605 curl -T "{file1,file2}" http://www.uploadtothissite.com
1606
1607 or even
1608
1609 curl -T "img[1-1000].png" ftp://ftp.picturemania.com/upload/
1610 .IP "--tcp-nodelay"
1611 Turn on the TCP_NODELAY option. See the \fIcurl_easy_setopt(3)\fP man page for
1612 details about this option. (Added in 7.11.2)
1613 .IP "--tftp-blksize <value>"
1614 (TFTP) Set TFTP BLKSIZE option (must be >512). This is the block size that
1615 curl will try to use when transferring data to or from a TFTP server. By
1616 default 512 bytes will be used.
1617
1618 If this option is used several times, the last one will be used.
1619
1620 (Added in 7.20.0)
1621 .IP "--tlsauthtype <authtype>"
1622 Set TLS authentication type. Currently, the only supported option is "SRP",
1623 for TLS-SRP (RFC 5054). If \fI--tlsuser\fP and \fI--tlspassword\fP are
1624 specified but \fI--tlsauthtype\fP is not, then this option defaults to "SRP".
1625 (Added in 7.21.4)
1626 .IP "--tlspassword <password>"
1627 Set password for use with the TLS authentication method specified with
1628 \fI--tlsauthtype\fP. Requires that \fI--tlsuser\fP also be set.  (Added in
1629 7.21.4)
1630 .IP "--tlsuser <user>"
1631 Set username for use with the TLS authentication method specified with
1632 \fI--tlsauthtype\fP. Requires that \fI--tlspassword\fP also be set.  (Added in
1633 7.21.4)
1634 .IP "--tlsv1.0"
1635 (SSL)
1636 Forces curl to use TLS version 1.0 when negotiating with a remote TLS server.
1637 (Added in 7.34.0)
1638 .IP "--tlsv1.1"
1639 (SSL)
1640 Forces curl to use TLS version 1.1 when negotiating with a remote TLS server.
1641 (Added in 7.34.0)
1642 .IP "--tlsv1.2"
1643 (SSL)
1644 Forces curl to use TLS version 1.2 when negotiating with a remote TLS server.
1645 (Added in 7.34.0)
1646 .IP "--tr-encoding"
1647 (HTTP) Request a compressed Transfer-Encoding response using one of the
1648 algorithms curl supports, and uncompress the data while receiving it.
1649
1650 (Added in 7.21.6)
1651 .IP "--trace <file>"
1652 Enables a full trace dump of all incoming and outgoing data, including
1653 descriptive information, to the given output file. Use "-" as filename to have
1654 the output sent to stdout.
1655
1656 This option overrides previous uses of \fI-v, --verbose\fP or
1657 \fI--trace-ascii\fP.
1658
1659 If this option is used several times, the last one will be used.
1660 .IP "--trace-ascii <file>"
1661 Enables a full trace dump of all incoming and outgoing data, including
1662 descriptive information, to the given output file. Use "-" as filename to have
1663 the output sent to stdout.
1664
1665 This is very similar to \fI--trace\fP, but leaves out the hex part and only
1666 shows the ASCII part of the dump. It makes smaller output that might be easier
1667 to read for untrained humans.
1668
1669 This option overrides previous uses of \fI-v, --verbose\fP or \fI--trace\fP.
1670
1671 If this option is used several times, the last one will be used.
1672 .IP "--trace-time"
1673 Prepends a time stamp to each trace or verbose line that curl displays.
1674 (Added in 7.14.0)
1675 .IP "--unix-socket <path>"
1676 (HTTP) Connect through this Unix domain socket, instead of using the
1677 network. (Added in 7.40.0)
1678 .IP "-u, --user <user:password>"
1679 Specify the user name and password to use for server authentication. Overrides
1680 \fI-n, --netrc\fP and \fI--netrc-optional\fP.
1681
1682 If you simply specify the user name, curl will prompt for a password.
1683
1684 The user name and passwords are split up on the first colon, which makes it
1685 impossible to use a colon in the user name with this option. The password can,
1686 still.
1687
1688 When using Kerberos V5 with a Windows based server you should include the
1689 Windows domain name in the user name, in order for the server to succesfully
1690 obtain a Kerberos Ticket. If you don't then the initial authentication
1691 handshake may fail.
1692
1693 When using NTLM, the user name can be specified simply as the user name,
1694 without the domain, if there is a single domain and forest in your setup
1695 for example.
1696
1697 To specify the domain name use either Down-Level Logon Name or UPN (User
1698 Principal Name) formats. For example, EXAMPLE\\user and user@example.com
1699 respectively.
1700
1701 If you use a Windows SSPI-enabled curl binary and perform Kerberos V5,
1702 Negotiate, NTLM or Digest authentication then you can tell curl to select
1703 the user name and password from your environment by specifying a single colon
1704 with this option: "-u :".
1705
1706 If this option is used several times, the last one will be used.
1707 .IP "-U, --proxy-user <user:password>"
1708 Specify the user name and password to use for proxy authentication.
1709
1710 If you use a Windows SSPI-enabled curl binary and do either Negotiate or NTLM
1711 authentication then you can tell curl to select the user name and password
1712 from your environment by specifying a single colon with this option: "-U :".
1713
1714 If this option is used several times, the last one will be used.
1715 .IP "--url <URL>"
1716 Specify a URL to fetch. This option is mostly handy when you want to specify
1717 URL(s) in a config file.
1718
1719 This option may be used any number of times. To control where this URL is
1720 written, use the \fI-o, --output\fP or the \fI-O, --remote-name\fP options.
1721 .IP "-v, --verbose"
1722 Be more verbose/talkative during the operation. Useful for debugging and
1723 seeing what's going on "under the hood". A line starting with '>' means
1724 "header data" sent by curl, '<' means "header data" received by curl that is
1725 hidden in normal cases, and a line starting with '*' means additional info
1726 provided by curl.
1727
1728 Note that if you only want HTTP headers in the output, \fI-i, --include\fP
1729 might be the option you're looking for.
1730
1731 If you think this option still doesn't give you enough details, consider using
1732 \fI--trace\fP or \fI--trace-ascii\fP instead.
1733
1734 This option overrides previous uses of \fI--trace-ascii\fP or \fI--trace\fP.
1735
1736 Use \fI-s, --silent\fP to make curl quiet.
1737 .IP "-w, --write-out <format>"
1738 Make curl display information on stdout after a completed transfer. The format
1739 is a string that may contain plain text mixed with any number of
1740 variables. The format can be specified as a literal "string", or you can have
1741 curl read the format from a file with "@filename" and to tell curl to read the
1742 format from stdin you write "@-".
1743
1744 The variables present in the output format will be substituted by the value or
1745 text that curl thinks fit, as described below. All variables are specified
1746 as %{variable_name} and to output a normal % you just write them as
1747 %%. You can output a newline by using \\n, a carriage return with \\r and a tab
1748 space with \\t.
1749
1750 .B NOTE:
1751 The %-symbol is a special symbol in the win32-environment, where all
1752 occurrences of % must be doubled when using this option.
1753
1754 The variables available are:
1755 .RS
1756 .TP 15
1757 .B content_type
1758 The Content-Type of the requested document, if there was any.
1759 .TP
1760 .B filename_effective
1761 The ultimate filename that curl writes out to. This is only meaningful if curl
1762 is told to write to a file with the \fI--remote-name\fP or \fI--output\fP
1763 option. It's most useful in combination with the \fI--remote-header-name\fP
1764 option. (Added in 7.25.1)
1765 .TP
1766 .B ftp_entry_path
1767 The initial path curl ended up in when logging on to the remote FTP
1768 server. (Added in 7.15.4)
1769 .TP
1770 .B http_code
1771 The numerical response code that was found in the last retrieved HTTP(S) or
1772 FTP(s) transfer. In 7.18.2 the alias \fBresponse_code\fP was added to show the
1773 same info.
1774 .TP
1775 .B http_connect
1776 The numerical code that was found in the last response (from a proxy) to a
1777 curl CONNECT request. (Added in 7.12.4)
1778 .TP
1779 .B local_ip
1780 The IP address of the local end of the most recently done connection - can be
1781 either IPv4 or IPv6 (Added in 7.29.0)
1782 .TP
1783 .B local_port
1784 The local port number of the most recently done connection (Added in 7.29.0)
1785 .TP
1786 .B num_connects
1787 Number of new connects made in the recent transfer. (Added in 7.12.3)
1788 .TP
1789 .B num_redirects
1790 Number of redirects that were followed in the request. (Added in 7.12.3)
1791 .TP
1792 .B redirect_url
1793 When an HTTP request was made without -L to follow redirects, this variable
1794 will show the actual URL a redirect \fIwould\fP take you to. (Added in 7.18.2)
1795 .TP
1796 .B remote_ip
1797 The remote IP address of the most recently done connection - can be either
1798 IPv4 or IPv6 (Added in 7.29.0)
1799 .TP
1800 .B remote_port
1801 The remote port number of the most recently done connection (Added in 7.29.0)
1802 .TP
1803 .B size_download
1804 The total amount of bytes that were downloaded.
1805 .TP
1806 .B size_header
1807 The total amount of bytes of the downloaded headers.
1808 .TP
1809 .B size_request
1810 The total amount of bytes that were sent in the HTTP request.
1811 .TP
1812 .B size_upload
1813 The total amount of bytes that were uploaded.
1814 .TP
1815 .B speed_download
1816 The average download speed that curl measured for the complete download. Bytes
1817 per second.
1818 .TP
1819 .B speed_upload
1820 The average upload speed that curl measured for the complete upload. Bytes per
1821 second.
1822 .TP
1823 .B ssl_verify_result
1824 The result of the SSL peer certificate verification that was requested. 0
1825 means the verification was successful. (Added in 7.19.0)
1826 .TP
1827 .B time_appconnect
1828 The time, in seconds, it took from the start until the SSL/SSH/etc
1829 connect/handshake to the remote host was completed. (Added in 7.19.0)
1830 .TP
1831 .B time_connect
1832 The time, in seconds, it took from the start until the TCP connect to the
1833 remote host (or proxy) was completed.
1834 .TP
1835 .B time_namelookup
1836 The time, in seconds, it took from the start until the name resolving was
1837 completed.
1838 .TP
1839 .B time_pretransfer
1840 The time, in seconds, it took from the start until the file transfer was just
1841 about to begin. This includes all pre-transfer commands and negotiations that
1842 are specific to the particular protocol(s) involved.
1843 .TP
1844 .B time_redirect
1845 The time, in seconds, it took for all redirection steps include name lookup,
1846 connect, pretransfer and transfer before the final transaction was
1847 started. time_redirect shows the complete execution time for multiple
1848 redirections. (Added in 7.12.3)
1849 .TP
1850 .B time_starttransfer
1851 The time, in seconds, it took from the start until the first byte was just
1852 about to be transferred. This includes time_pretransfer and also the time the
1853 server needed to calculate the result.
1854 .TP
1855 .B time_total
1856 The total time, in seconds, that the full operation lasted. The time will be
1857 displayed with millisecond resolution.
1858 .TP
1859 .B url_effective
1860 The URL that was fetched last. This is most meaningful if you've told curl
1861 to follow location: headers.
1862 .RE
1863
1864 If this option is used several times, the last one will be used.
1865 .IP "-x, --proxy <[protocol://][user:password@]proxyhost[:port]>"
1866 Use the specified proxy.
1867
1868 The proxy string can be specified with a protocol:// prefix to specify
1869 alternative proxy protocols. Use socks4://, socks4a://, socks5:// or
1870 socks5h:// to request the specific SOCKS version to be used. No protocol
1871 specified, http:// and all others will be treated as HTTP proxies. (The
1872 protocol support was added in curl 7.21.7)
1873
1874 If the port number is not specified in the proxy string, it is assumed to be
1875 1080.
1876
1877 This option overrides existing environment variables that set the proxy to
1878 use. If there's an environment variable setting a proxy, you can set proxy to
1879 \&"" to override it.
1880
1881 All operations that are performed over an HTTP proxy will transparently be
1882 converted to HTTP. It means that certain protocol specific operations might
1883 not be available. This is not the case if you can tunnel through the proxy, as
1884 one with the \fI-p, --proxytunnel\fP option.
1885
1886 User and password that might be provided in the proxy string are URL decoded
1887 by curl. This allows you to pass in special characters such as @ by using %40
1888 or pass in a colon with %3a.
1889
1890 The proxy host can be specified the exact same way as the proxy environment
1891 variables, including the protocol prefix (http://) and the embedded user +
1892 password.
1893
1894 If this option is used several times, the last one will be used.
1895 .IP "-X, --request <command>"
1896 (HTTP) Specifies a custom request method to use when communicating with the
1897 HTTP server.  The specified request will be used instead of the method
1898 otherwise used (which defaults to GET). Read the HTTP 1.1 specification for
1899 details and explanations. Common additional HTTP requests include PUT and
1900 DELETE, but related technologies like WebDAV offers PROPFIND, COPY, MOVE and
1901 more.
1902
1903 Normally you don't need this option. All sorts of GET, HEAD, POST and PUT
1904 requests are rather invoked by using dedicated command line options.
1905
1906 This option only changes the actual word used in the HTTP request, it does not
1907 alter the way curl behaves. So for example if you want to make a proper HEAD
1908 request, using -X HEAD will not suffice. You need to use the \fI-I, --head\fP
1909 option.
1910
1911 (FTP)
1912 Specifies a custom FTP command to use instead of LIST when doing file lists
1913 with FTP.
1914
1915 (POP3)
1916 Specifies a custom POP3 command to use instead of LIST or RETR. (Added in
1917 7.26.0)
1918
1919 (IMAP)
1920 Specifies a custom IMAP command to use instead of LIST. (Added in 7.30.0)
1921
1922 (SMTP)
1923 Specifies a custom SMTP command to use instead of HELP or VRFY. (Added in 7.34.0)
1924
1925 If this option is used several times, the last one will be used.
1926 .IP "--xattr"
1927 When saving output to a file, this option tells curl to store certain file
1928 metadata in extended file attributes. Currently, the URL is stored in the
1929 xdg.origin.url attribute and, for HTTP, the content type is stored in
1930 the mime_type attribute. If the file system does not support extended
1931 attributes, a warning is issued.
1932
1933 .IP "-y, --speed-time <time>"
1934 If a download is slower than speed-limit bytes per second during a speed-time
1935 period, the download gets aborted. If speed-time is used, the default
1936 speed-limit will be 1 unless set with \fI-Y\fP.
1937
1938 This option controls transfers and thus will not affect slow connects etc. If
1939 this is a concern for you, try the \fI--connect-timeout\fP option.
1940
1941 If this option is used several times, the last one will be used.
1942 .IP "-Y, --speed-limit <speed>"
1943 If a download is slower than this given speed (in bytes per second) for
1944 speed-time seconds it gets aborted. speed-time is set with \fI-y\fP and is 30
1945 if not set.
1946
1947 If this option is used several times, the last one will be used.
1948 .IP "-z, --time-cond <date expression>|<file>"
1949 (HTTP/FTP) Request a file that has been modified later than the given time and
1950 date, or one that has been modified before that time. The <date expression>
1951 can be all sorts of date strings or if it doesn't match any internal ones, it
1952 is taken as a filename and tries to get the modification date (mtime) from
1953 <file> instead. See the \fIcurl_getdate(3)\fP man pages for date expression
1954 details.
1955
1956 Start the date expression with a dash (-) to make it request for a document
1957 that is older than the given date/time, default is a document that is newer
1958 than the specified date/time.
1959
1960 If this option is used several times, the last one will be used.
1961 .IP "-h, --help"
1962 Usage help. This lists all current command line options with a short
1963 description.
1964 .IP "-M, --manual"
1965 Manual. Display the huge help text.
1966 .IP "-V, --version"
1967 Displays information about curl and the libcurl version it uses.
1968
1969 The first line includes the full version of curl, libcurl and other 3rd party
1970 libraries linked with the executable.
1971
1972 The second line (starts with "Protocols:") shows all protocols that libcurl
1973 reports to support.
1974
1975 The third line (starts with "Features:") shows specific features libcurl
1976 reports to offer. Available features include:
1977 .RS
1978 .IP "IPv6"
1979 You can use IPv6 with this.
1980 .IP "krb4"
1981 Krb4 for FTP is supported.
1982 .IP "SSL"
1983 SSL versions of various protocols are supported, such as HTTPS, FTPS, POP3S
1984 and so on.
1985 .IP "libz"
1986 Automatic decompression of compressed files over HTTP is supported.
1987 .IP "NTLM"
1988 NTLM authentication is supported.
1989 .IP "Debug"
1990 This curl uses a libcurl built with Debug. This enables more error-tracking
1991 and memory debugging etc. For curl-developers only!
1992 .IP "AsynchDNS"
1993 This curl uses asynchronous name resolves. Asynchronous name resolves can be
1994 done using either the c-ares or the threaded resolver backends.
1995 .IP "SPNEGO"
1996 SPNEGO authentication is supported.
1997 .IP "Largefile"
1998 This curl supports transfers of large files, files larger than 2GB.
1999 .IP "IDN"
2000 This curl supports IDN - international domain names.
2001 .IP "GSS-API"
2002 GSS-API is supported.
2003 .IP "SSPI"
2004 SSPI is supported.
2005 .IP "TLS-SRP"
2006 SRP (Secure Remote Password) authentication is supported for TLS.
2007 .IP "HTTP2"
2008 HTTP/2 support has been built-in.
2009 .IP "Metalink"
2010 This curl supports Metalink (both version 3 and 4 (RFC 5854)), which
2011 describes mirrors and hashes.  curl will use mirrors for failover if
2012 there are errors (such as the file or server not being available).
2013 .RE
2014 .SH FILES
2015 .I ~/.curlrc
2016 .RS
2017 Default config file, see \fI-K, --config\fP for details.
2018 .SH ENVIRONMENT
2019 The environment variables can be specified in lower case or upper case. The
2020 lower case version has precedence. http_proxy is an exception as it is only
2021 available in lower case.
2022
2023 Using an environment variable to set the proxy has the same effect as using
2024 the \fI--proxy\fP option.
2025
2026 .IP "http_proxy [protocol://]<host>[:port]"
2027 Sets the proxy server to use for HTTP.
2028 .IP "HTTPS_PROXY [protocol://]<host>[:port]"
2029 Sets the proxy server to use for HTTPS.
2030 .IP "[url-protocol]_PROXY [protocol://]<host>[:port]"
2031 Sets the proxy server to use for [url-protocol], where the protocol is a
2032 protocol that curl supports and as specified in a URL. FTP, FTPS, POP3, IMAP,
2033 SMTP, LDAP etc.
2034 .IP "ALL_PROXY [protocol://]<host>[:port]"
2035 Sets the proxy server to use if no protocol-specific proxy is set.
2036 .IP "NO_PROXY <comma-separated list of hosts>"
2037 list of host names that shouldn't go through any proxy. If set to a asterisk
2038 \&'*' only, it matches all hosts.
2039 .SH "PROXY PROTOCOL PREFIXES"
2040 Since curl version 7.21.7, the proxy string may be specified with a
2041 protocol:// prefix to specify alternative proxy protocols.
2042
2043 If no protocol is specified in the proxy string or if the string doesn't match
2044 a supported one, the proxy will be treated as an HTTP proxy.
2045
2046 The supported proxy protocol prefixes are as follows:
2047 .IP "socks4://"
2048 Makes it the equivalent of \fI--socks4\fP
2049 .IP "socks4a://"
2050 Makes it the equivalent of \fI--socks4a\fP
2051 .IP "socks5://"
2052 Makes it the equivalent of \fI--socks5\fP
2053 .IP "socks5h://"
2054 Makes it the equivalent of \fI--socks5-hostname\fP
2055 .SH EXIT CODES
2056 There are a bunch of different error codes and their corresponding error
2057 messages that may appear during bad conditions. At the time of this writing,
2058 the exit codes are:
2059 .IP 1
2060 Unsupported protocol. This build of curl has no support for this protocol.
2061 .IP 2
2062 Failed to initialize.
2063 .IP 3
2064 URL malformed. The syntax was not correct.
2065 .IP 4
2066 A feature or option that was needed to perform the desired request was not
2067 enabled or was explicitly disabled at build-time. To make curl able to do
2068 this, you probably need another build of libcurl!
2069 .IP 5
2070 Couldn't resolve proxy. The given proxy host could not be resolved.
2071 .IP 6
2072 Couldn't resolve host. The given remote host was not resolved.
2073 .IP 7
2074 Failed to connect to host.
2075 .IP 8
2076 FTP weird server reply. The server sent data curl couldn't parse.
2077 .IP 9
2078 FTP access denied. The server denied login or denied access to the particular
2079 resource or directory you wanted to reach. Most often you tried to change to a
2080 directory that doesn't exist on the server.
2081 .IP 11
2082 FTP weird PASS reply. Curl couldn't parse the reply sent to the PASS request.
2083 .IP 13
2084 FTP weird PASV reply, Curl couldn't parse the reply sent to the PASV request.
2085 .IP 14
2086 FTP weird 227 format. Curl couldn't parse the 227-line the server sent.
2087 .IP 15
2088 FTP can't get host. Couldn't resolve the host IP we got in the 227-line.
2089 .IP 17
2090 FTP couldn't set binary. Couldn't change transfer method to binary.
2091 .IP 18
2092 Partial file. Only a part of the file was transferred.
2093 .IP 19
2094 FTP couldn't download/access the given file, the RETR (or similar) command
2095 failed.
2096 .IP 21
2097 FTP quote error. A quote command returned error from the server.
2098 .IP 22
2099 HTTP page not retrieved. The requested url was not found or returned another
2100 error with the HTTP error code being 400 or above. This return code only
2101 appears if \fI-f, --fail\fP is used.
2102 .IP 23
2103 Write error. Curl couldn't write data to a local filesystem or similar.
2104 .IP 25
2105 FTP couldn't STOR file. The server denied the STOR operation, used for FTP
2106 uploading.
2107 .IP 26
2108 Read error. Various reading problems.
2109 .IP 27
2110 Out of memory. A memory allocation request failed.
2111 .IP 28
2112 Operation timeout. The specified time-out period was reached according to the
2113 conditions.
2114 .IP 30
2115 FTP PORT failed. The PORT command failed. Not all FTP servers support the PORT
2116 command, try doing a transfer using PASV instead!
2117 .IP 31
2118 FTP couldn't use REST. The REST command failed. This command is used for
2119 resumed FTP transfers.
2120 .IP 33
2121 HTTP range error. The range "command" didn't work.
2122 .IP 34
2123 HTTP post error. Internal post-request generation error.
2124 .IP 35
2125 SSL connect error. The SSL handshaking failed.
2126 .IP 36
2127 FTP bad download resume. Couldn't continue an earlier aborted download.
2128 .IP 37
2129 FILE couldn't read file. Failed to open the file. Permissions?
2130 .IP 38
2131 LDAP cannot bind. LDAP bind operation failed.
2132 .IP 39
2133 LDAP search failed.
2134 .IP 41
2135 Function not found. A required LDAP function was not found.
2136 .IP 42
2137 Aborted by callback. An application told curl to abort the operation.
2138 .IP 43
2139 Internal error. A function was called with a bad parameter.
2140 .IP 45
2141 Interface error. A specified outgoing interface could not be used.
2142 .IP 47
2143 Too many redirects. When following redirects, curl hit the maximum amount.
2144 .IP 48
2145 Unknown option specified to libcurl. This indicates that you passed a weird
2146 option to curl that was passed on to libcurl and rejected. Read up in the
2147 manual!
2148 .IP 49
2149 Malformed telnet option.
2150 .IP 51
2151 The peer's SSL certificate or SSH MD5 fingerprint was not OK.
2152 .IP 52
2153 The server didn't reply anything, which here is considered an error.
2154 .IP 53
2155 SSL crypto engine not found.
2156 .IP 54
2157 Cannot set SSL crypto engine as default.
2158 .IP 55
2159 Failed sending network data.
2160 .IP 56
2161 Failure in receiving network data.
2162 .IP 58
2163 Problem with the local certificate.
2164 .IP 59
2165 Couldn't use specified SSL cipher.
2166 .IP 60
2167 Peer certificate cannot be authenticated with known CA certificates.
2168 .IP 61
2169 Unrecognized transfer encoding.
2170 .IP 62
2171 Invalid LDAP URL.
2172 .IP 63
2173 Maximum file size exceeded.
2174 .IP 64
2175 Requested FTP SSL level failed.
2176 .IP 65
2177 Sending the data requires a rewind that failed.
2178 .IP 66
2179 Failed to initialise SSL Engine.
2180 .IP 67
2181 The user name, password, or similar was not accepted and curl failed to log in.
2182 .IP 68
2183 File not found on TFTP server.
2184 .IP 69
2185 Permission problem on TFTP server.
2186 .IP 70
2187 Out of disk space on TFTP server.
2188 .IP 71
2189 Illegal TFTP operation.
2190 .IP 72
2191 Unknown TFTP transfer ID.
2192 .IP 73
2193 File already exists (TFTP).
2194 .IP 74
2195 No such user (TFTP).
2196 .IP 75
2197 Character conversion failed.
2198 .IP 76
2199 Character conversion functions required.
2200 .IP 77
2201 Problem with reading the SSL CA cert (path? access rights?).
2202 .IP 78
2203 The resource referenced in the URL does not exist.
2204 .IP 79
2205 An unspecified error occurred during the SSH session.
2206 .IP 80
2207 Failed to shut down the SSL connection.
2208 .IP 82
2209 Could not load CRL file, missing or wrong format (added in 7.19.0).
2210 .IP 83
2211 Issuer check failed (added in 7.19.0).
2212 .IP 84
2213 The FTP PRET command failed
2214 .IP 85
2215 RTSP: mismatch of CSeq numbers
2216 .IP 86
2217 RTSP: mismatch of Session Identifiers
2218 .IP 87
2219 unable to parse FTP file list
2220 .IP 88
2221 FTP chunk callback reported error
2222 .IP 89
2223 No connection available, the session will be queued
2224 .IP 90
2225 SSL public key does not matched pinned public key
2226 .IP XX
2227 More error codes will appear here in future releases. The existing ones
2228 are meant to never change.
2229 .SH AUTHORS / CONTRIBUTORS
2230 Daniel Stenberg is the main author, but the whole list of contributors is
2231 found in the separate THANKS file.
2232 .SH WWW
2233 http://curl.haxx.se
2234 .SH FTP
2235 ftp://ftp.sunet.se/pub/www/utilities/curl/
2236 .SH "SEE ALSO"
2237 .BR ftp (1),
2238 .BR wget (1)