Install curl-7.21.1.tar.bz2
[msysgit.git] / mingw / share / man / man1 / curl.1
blobaec3e48f5c65c2245b6eacf13a6d1f748bdc4b3e
1 .\" **************************************************************************
2 .\" *                                  _   _ ____  _
3 .\" *  Project                     ___| | | |  _ \| |
4 .\" *                             / __| | | | |_) | |
5 .\" *                            | (__| |_| |  _ <| |___
6 .\" *                             \___|\___/|_| \_\_____|
7 .\" *
8 .\" * Copyright (C) 1998 - 2010, 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 "28 November 2009" "Curl 7.20.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 (HTTP, HTTPS, FTP, FTPS, SCP, SFTP, TFTP, DICT, TELNET, LDAP or
33 FILE).  The command is designed to work without user interaction.
35 curl offers a busload of useful tricks like proxy support, user
36 authentication, FTP upload, HTTP post, SSL connections, cookies, file transfer
37 resume and more. As you will see below, the number of features will make your
38 head spin!
40 curl is powered by libcurl for all transfer-related features. See
41 .BR libcurl (3)
42 for details.
43 .SH URL
44 The URL syntax is protocol-dependent. You'll find a detailed description in
45 RFC 3986.
47 You can specify multiple URLs or parts of URLs by writing part sets within
48 braces as in:
50  http://site.{one,two,three}.com
52 or you can get sequences of alphanumeric series by using [] as in:
54  ftp://ftp.numericals.com/file[1-100].txt
55  ftp://ftp.numericals.com/file[001-100].txt    (with leading zeros)
56  ftp://ftp.letters.com/file[a-z].txt
58 No nesting of the sequences is supported at the moment, but you can use
59 several ones next to each other:
61  http://any.org/archive[1996-1999]/vol[1-4]/part{a,b,c}.html
63 You can specify any amount of URLs on the command line. They will be fetched
64 in a sequential manner in the specified order.
66 Since curl 7.15.1 you can also specify a step counter for the ranges, so that
67 you can get every Nth number or letter:
69  http://www.numericals.com/file[1-100:10].txt
70  http://www.letters.com/file[a-z:2].txt
72 If you specify URL without protocol:// prefix, curl will attempt to guess what
73 protocol you might want. It will then default to HTTP but try other protocols
74 based on often-used host name prefixes. For example, for host names starting
75 with "ftp." curl will assume you want to speak FTP.
77 curl will do its best to use what you pass to it as a URL. It is not trying to
78 validate it as a syntactically correct URL by any means but is instead
79 \fBvery\fP liberal with what it accepts.
81 Curl will attempt to re-use connections for multiple file transfers, so that
82 getting many files from the same server will not do multiple connects /
83 handshakes. This improves speed. Of course this is only done on files
84 specified on a single command line and cannot be used between separate curl
85 invokes.
86 .SH "PROGRESS METER"
87 curl normally displays a progress meter during operations, indicating the amount
88 of transferred data, transfer speeds and estimated time left, etc.
90 However, since curl displays this data to the terminal by default, if you invoke
91 curl to do an operation and it is about to write data to the terminal, it
92 \fIdisables\fP the progress meter as otherwise it would mess up the output
93 mixing progress meter and response data.
95 If you want a progress meter for HTTP POST or PUT requests, you need to
96 redirect the response output to a file, using shell redirect (>), -o [file] or
97 similar.
99 It is not the same case for FTP upload as that operation does not spit out
100 any response data to the terminal.
102 If you prefer a progress "bar" instead of the regular meter, \fI-#\fP is your
103 friend.
104 .SH OPTIONS
105 In general, all boolean options are enabled with --option and yet again
106 disabled with --\fBno-\fPoption. That is, you use the exact same option name
107 but prefix it with "no-". However, in this list we mostly only list and show
108 the --option version of them. (This concept with --no options was added in
109 7.19.0. Previously most options were toggled on/off on repeated use of the
110 same command line option.)
111 .IP "-a/--append"
112 (FTP/SFTP) When used in an upload, this will tell curl to append to the target
113 file instead of overwriting it. If the file doesn't exist, it will be created.
114 Note that this flag is ignored by some SSH servers (including OpenSSH).
115 .IP "-A/--user-agent <agent string>"
116 (HTTP) Specify the User-Agent string to send to the HTTP server. Some badly
117 done CGIs fail if this field isn't set to "Mozilla/4.0". To encode blanks in
118 the string, surround the string with single quote marks. This can also be set
119 with the \fI-H/--header\fP option of course.
121 If this option is set more than once, the last one will be the one that's
122 used.
123 .IP "--anyauth"
124 (HTTP) Tells curl to figure out authentication method by itself, and use the
125 most secure one the remote site claims to support. This is done by first
126 doing a request and checking the response-headers, thus possibly inducing an
127 extra network round-trip. This is used instead of setting a specific
128 authentication method, which you can do with \fI--basic\fP, \fI--digest\fP,
129 \fI--ntlm\fP, and \fI--negotiate\fP.
131 Note that using --anyauth is not recommended if you do uploads from stdin,
132 since it may require data to be sent twice and then the client must be able to
133 rewind. If the need should arise when uploading from stdin, the upload
134 operation will fail.
135 .IP "-b/--cookie <name=data>"
136 (HTTP)
137 Pass the data to the HTTP server as a cookie. It is supposedly the
138 data previously received from the server in a "Set-Cookie:" line.
139 The data should be in the format "NAME1=VALUE1; NAME2=VALUE2".
141 If no '=' symbol is used in the line, it is treated as a filename to use to
142 read previously stored cookie lines from, which should be used in this session
143 if they match. Using this method also activates the "cookie parser" which will
144 make curl record incoming cookies too, which may be handy if you're using this
145 in combination with the \fI-L/--location\fP option. The file format of the
146 file to read cookies from should be plain HTTP headers or the Netscape/Mozilla
147 cookie file format.
149 \fBNOTE\fP that the file specified with \fI-b/--cookie\fP is only used as
150 input. No cookies will be stored in the file. To store cookies, use the
151 \fI-c/--cookie-jar\fP option or you could even save the HTTP headers to a file
152 using \fI-D/--dump-header\fP!
154 If this option is set more than once, the last one will be the one that's
155 used.
156 .IP "-B/--use-ascii"
157 Enable ASCII transfer when using FTP or LDAP. For FTP, this can also be
158 enforced by using an URL that ends with ";type=A". This option causes data
159 sent to stdout to be in text mode for win32 systems.
160 .IP "--basic"
161 (HTTP) Tells curl to use HTTP Basic authentication. This is the default and
162 this option is usually pointless, unless you use it to override a previously
163 set option that sets a different authentication method (such as \fI--ntlm\fP,
164 \fI--digest\fP, or \fI--negotiate\fP).
165 .IP "--ciphers <list of ciphers>"
166 (SSL) Specifies which ciphers to use in the connection. The list of ciphers
167 must specify valid ciphers. Read up on SSL cipher list details on this URL:
168 \fIhttp://www.openssl.org/docs/apps/ciphers.html\fP
170 NSS ciphers are done differently than OpenSSL and GnuTLS. The full list of
171 NSS ciphers is in the NSSCipherSuite entry at this URL:
172 \fIhttp://directory.fedora.redhat.com/docs/mod_nss.html#Directives\fP
174 If this option is used several times, the last one will override the others.
175 .IP "--compressed"
176 (HTTP) Request a compressed response using one of the algorithms libcurl
177 supports, and return the uncompressed document.  If this option is used and
178 the server sends an unsupported encoding, curl will report an error.
179 .IP "--connect-timeout <seconds>"
180 Maximum time in seconds that you allow the connection to the server to take.
181 This only limits the connection phase, once curl has connected this option is
182 of no more use. See also the \fI-m/--max-time\fP option.
184 If this option is used several times, the last one will be used.
185 .IP "-c/--cookie-jar <file name>"
186 Specify to which file you want curl to write all cookies after a completed
187 operation. Curl writes all cookies previously read from a specified file as
188 well as all cookies received from remote server(s). If no cookies are known,
189 no file will be written. The file will be written using the Netscape cookie
190 file format. If you set the file name to a single dash, "-", the cookies will
191 be written to stdout.
193 .B NOTE
194 If the cookie jar can't be created or written to, the whole curl operation
195 won't fail or even report an error clearly. Using -v will get a warning
196 displayed, but that is the only visible feedback you get about this possibly
197 lethal situation.
199 If this option is used several times, the last specified file name will be
200 used.
201 .IP "-C/--continue-at <offset>"
202 Continue/Resume a previous file transfer at the given offset. The given offset
203 is the exact number of bytes that will be skipped, counting from the beginning
204 of the source file before it is transferred to the destination.  If used with
205 uploads, the FTP server command SIZE will not be used by curl.
207 Use "-C -" to tell curl to automatically find out where/how to resume the
208 transfer. It then uses the given output/input files to figure that out.
210 If this option is used several times, the last one will be used.
211 .IP "--create-dirs"
212 When used in conjunction with the -o option, curl will create the necessary
213 local directory hierarchy as needed. This option creates the dirs mentioned
214 with the -o option, nothing else. If the -o file name uses no dir or if the
215 dirs it mentions already exist, no dir will be created.
217 To create remote directories when using FTP or SFTP, try
218 \fI--ftp-create-dirs\fP.
219 .IP "--crlf"
220 (FTP) Convert LF to CRLF in upload. Useful for MVS (OS/390).
221 .IP "--crlfile <file>"
222 (HTTPS/FTPS) Provide a file using PEM format with a Certificate Revocation
223 List that may specify peer certificates that are to be considered revoked.
225 If this option is used several times, the last one will be used.
227 (Added in 7.19.7)
228 .IP "-d/--data <data>"
229 (HTTP) Sends the specified data in a POST request to the HTTP server, in the
230 same way that a browser does when a user has filled in an HTML form and
231 presses the submit button. This will cause curl to pass the data to the server
232 using the content-type application/x-www-form-urlencoded.  Compare to
233 \fI-F/--form\fP.
235 \fI-d/--data\fP is the same as \fI--data-ascii\fP. To post data purely binary,
236 you should instead use the \fI--data-binary\fP option. To URL-encode the value
237 of a form field you may use \fI--data-urlencode\fP.
239 If any of these options is used more than once on the same command line, the
240 data pieces specified will be merged together with a separating
241 &-symbol. Thus, using '-d name=daniel -d skill=lousy' would generate a post
242 chunk that looks like \&'name=daniel&skill=lousy'.
244 If you start the data with the letter @, the rest should be a file name to
245 read the data from, or - if you want curl to read the data from stdin.  The
246 contents of the file must already be URL-encoded. Multiple files can also be
247 specified. Posting data from a file named 'foobar' would thus be done with
248 \fI--data @foobar\fP.
249 .IP "--data-binary <data>"
250 (HTTP) This posts data exactly as specified with no extra processing
251 whatsoever.
253 If you start the data with the letter @, the rest should be a filename.  Data
254 is posted in a similar manner as \fI--data-ascii\fP does, except that newlines
255 are preserved and conversions are never done.
257 If this option is used several times, the ones following the first will append
258 data as described in \fI-d/--data\fP.
259 .IP "--data-urlencode <data>"
260 (HTTP) This posts data, similar to the other --data options with the exception
261 that this performs URL-encoding. (Added in 7.18.0)
263 To be CGI-compliant, the <data> part should begin with a \fIname\fP followed
264 by a separator and a content specification. The <data> part can be passed to
265 curl using one of the following syntaxes:
267 .IP "content"
268 This will make curl URL-encode the content and pass that on. Just be careful
269 so that the content doesn't contain any = or @ symbols, as that will then make
270 the syntax match one of the other cases below!
271 .IP "=content"
272 This will make curl URL-encode the content and pass that on. The preceding =
273 symbol is not included in the data.
274 .IP "name=content"
275 This will make curl URL-encode the content part and pass that on. Note that
276 the name part is expected to be URL-encoded already.
277 .IP "@filename"
278 This will make curl load data from the given file (including any newlines),
279 URL-encode that data and pass it on in the POST.
280 .IP "name@filename"
281 This will make curl load data from the given file (including any newlines),
282 URL-encode that data and pass it on in the POST. The name part gets an equal
283 sign appended, resulting in \fIname=urlencoded-file-content\fP. Note that the
284 name is expected to be URL-encoded already.
286 .IP "--digest"
287 (HTTP) Enables HTTP Digest authentication. This is a authentication that
288 prevents the password from being sent over the wire in clear text. Use this in
289 combination with the normal \fI-u/--user\fP option to set user name and
290 password. See also \fI--ntlm\fP, \fI--negotiate\fP and \fI--anyauth\fP for
291 related options.
293 If this option is used several times, the following occurrences make no
294 difference.
295 .IP "--disable-eprt"
296 (FTP) Tell curl to disable the use of the EPRT and LPRT commands when doing
297 active FTP transfers. Curl will normally always first attempt to use EPRT,
298 then LPRT before using PORT, but with this option, it will use PORT right
299 away. EPRT and LPRT are extensions to the original FTP protocol, and may not work
300 on all servers, but they enable more functionality in a better way than the
301 traditional PORT command.
303 Since curl 7.19.0, \fB--eprt\fP can be used to explicitly enable EPRT again
304 and \fB--no-eprt\fP is an alias for \fB--disable-eprt\fP.
306 Disabling EPRT only changes the active behavior. If you want to switch to
307 passive mode you need to not use \fI-P/--ftp-port\fP or force it with
308 \fI--ftp-pasv\fP.
309 .IP "--disable-epsv"
310 (FTP) Tell curl to disable the use of the EPSV command when doing passive FTP
311 transfers. Curl will normally always first attempt to use EPSV before PASV,
312 but with this option, it will not try using EPSV.
314 Since curl 7.19.0, \fB--epsv\fP can be used to explicitly enable EPRT again
315 and \fB--no-epsv\fP is an alias for \fB--disable-epsv\fP.
317 Disabling EPSV only changes the passive behavior. If you want to switch to
318 active mode you need to use \fI-P/--ftp-port\fP.
319 .IP "-D/--dump-header <file>"
320 Write the protocol headers to the specified file.
322 This option is handy to use when you want to store the headers that a HTTP
323 site sends to you. Cookies from the headers could then be read in a second
324 curl invocation by using the \fI-b/--cookie\fP option! The \fI-c/--cookie-jar\fP
325 option is however a better way to store cookies.
327 When used in FTP, the FTP server response lines are considered being "headers"
328 and thus are saved there.
330 If this option is used several times, the last one will be used.
331 .IP "-e/--referer <URL>"
332 (HTTP) Sends the "Referer Page" information to the HTTP server. This can also
333 be set with the \fI-H/--header\fP flag of course.  When used with
334 \fI-L/--location\fP you can append ";auto" to the --referer URL to make curl
335 automatically set the previous URL when it follows a Location: header. The
336 \&";auto" string can be used alone, even if you don't set an initial --referer.
338 If this option is used several times, the last one will be used.
339 .IP "--engine <name>"
340 Select the OpenSSL crypto engine to use for cipher
341 operations. Use \fI--engine list\fP to print a list of build-time supported
342 engines. Note that not all (or none) of the engines may be available at
343 run-time.
344 .IP "--environment"
345 (RISC OS ONLY) Sets a range of environment variables, using the names the -w
346 option supports, to allow easier extraction of useful information after having
347 run curl.
348 .IP "--egd-file <file>"
349 (SSL) Specify the path name to the Entropy Gathering Daemon socket. The socket
350 is used to seed the random engine for SSL connections. See also the
351 \fI--random-file\fP option.
352 .IP "-E/--cert <certificate[:password]>"
353 (SSL) Tells curl to use the specified certificate file when getting a file
354 with HTTPS or FTPS. The certificate must be in PEM format.  If the optional
355 password isn't specified, it will be queried for on the terminal. Note that
356 this option assumes a \&"certificate" file that is the private key and the
357 private certificate concatenated! See \fI--cert\fP and \fI--key\fP to specify
358 them independently.
360 If curl is built against the NSS SSL library then this option tells
361 curl the nickname of the certificate to use within the NSS database defined
362 by the environment variable SSL_DIR (or by default /etc/pki/nssdb). If the
363 NSS PEM PKCS#11 module (libnsspem.so) is available then PEM files may be
364 loaded.
366 If this option is used several times, the last one will be used.
367 .IP "--cert-type <type>"
368 (SSL) Tells curl what certificate type the provided certificate is in. PEM,
369 DER and ENG are recognized types.  If not specified, PEM is assumed.
371 If this option is used several times, the last one will be used.
372 .IP "--cacert <CA certificate>"
373 (SSL) Tells curl to use the specified certificate file to verify the peer. The
374 file may contain multiple CA certificates. The certificate(s) must be in PEM
375 format. Normally curl is built to use a default file for this, so this option
376 is typically used to alter that default file.
378 curl recognizes the environment variable named 'CURL_CA_BUNDLE' if it is
379 set, and uses the given path as a path to a CA cert bundle. This option
380 overrides that variable.
382 The windows version of curl will automatically look for a CA certs file named
383 \'curl-ca-bundle.crt\', either in the same directory as curl.exe, or in the
384 Current Working Directory, or in any folder along your PATH.
386 If curl is built against the NSS SSL library then this option tells
387 curl the nickname of the CA certificate to use within the NSS database
388 defined by the environment variable SSL_DIR (or by default /etc/pki/nssdb).
389 If the NSS PEM PKCS#11 module (libnsspem.so) is available then PEM files
390 may be loaded.
392 If this option is used several times, the last one will be used.
393 .IP "--capath <CA certificate directory>"
394 (SSL) Tells curl to use the specified certificate directory to verify the
395 peer. The certificates must be in PEM format, and the directory must have been
396 processed using the c_rehash utility supplied with openssl. Using
397 \fI--capath\fP can allow curl to make SSL-connections much more efficiently
398 than using \fI--cacert\fP if the \fI--cacert\fP file contains many CA
399 certificates.
401 If this option is used several times, the last one will be used.
402 .IP "-f/--fail"
403 (HTTP) Fail silently (no output at all) on server errors. This is mostly done
404 to better enable scripts etc to better deal with failed attempts. In
405 normal cases when a HTTP server fails to deliver a document, it returns an
406 HTML document stating so (which often also describes why and more). This flag
407 will prevent curl from outputting that and return error 22.
409 This method is not fail-safe and there are occasions where non-successful
410 response codes will slip through, especially when authentication is involved
411 (response codes 401 and 407).
412 .IP "--ftp-account [data]"
413 (FTP) When an FTP server asks for "account data" after user name and password
414 has been provided, this data is sent off using the ACCT command. (Added in
415 7.13.0)
417 If this option is used twice, the second will override the previous use.
418 .IP "--ftp-create-dirs"
419 (FTP/SFTP) When an FTP or SFTP URL/operation uses a path that doesn't
420 currently exist on the server, the standard behavior of curl is to
421 fail. Using this option, curl will instead attempt to create missing
422 directories.
423 .IP "--ftp-method [method]"
424 (FTP) Control what method curl should use to reach a file on a FTP(S)
425 server. The method argument should be one of the following alternatives:
427 .IP multicwd
428 curl does a single CWD operation for each path part in the given URL. For deep
429 hierarchies this means very many commands. This is how RFC1738 says it should
430 be done. This is the default but the slowest behavior.
431 .IP nocwd
432 curl does no CWD at all. curl will do SIZE, RETR, STOR etc and give a full
433 path to the server for all these commands. This is the fastest behavior.
434 .IP singlecwd
435 curl does one CWD with the full target directory and then operates on the file
436 \&"normally" (like in the multicwd case). This is somewhat more standards
437 compliant than 'nocwd' but without the full penalty of 'multicwd'.
439 (Added in 7.15.1)
440 .IP "--ftp-pasv"
441 (FTP) Use passive mode for the data conection. Passive is the internal default
442 behavior, but using this option can be used to override a previous
443 \fI-P/-ftp-port\fP option. (Added in 7.11.0)
445 If this option is used several times, the following occurrences make no
446 difference. Undoing an enforced passive really isn't doable but you must then
447 instead enforce the correct \fI-P/--ftp-port\fP again.
449 Passive mode means that curl will try the EPSV command first and then PASV,
450 unless \fI--disable-epsv\fP is used.
451 .IP "--ftp-alternative-to-user <command>"
452 (FTP) If authenticating with the USER and PASS commands fails, send this
453 command.  When connecting to Tumbleweed's Secure Transport server over FTPS
454 using a client certificate, using "SITE AUTH" will tell the server to retrieve
455 the username from the certificate. (Added in 7.15.5)
456 .IP "--ftp-skip-pasv-ip"
457 (FTP) Tell curl to not use the IP address the server suggests in its response
458 to curl's PASV command when curl connects the data connection. Instead curl
459 will re-use the same IP address it already uses for the control
460 connection. (Added in 7.14.2)
462 This option has no effect if PORT, EPRT or EPSV is used instead of PASV.
463 .IP "--ftp-pret"
464 (FTP) Tell curl to send a PRET command before PASV (and EPSV). Certain
465 FTP servers, mainly drftpd, require this non-standard command for
466 directory listings as well as up and downloads in PASV mode.
467 (Added in 7.20.x)
468 .IP "--ssl"
469 (FTP, POP3, IMAP, SMTP) Try to use SSL/TLS for the connection.  Reverts to a
470 non-secure connection if the server doesn't support SSL/TLS.  See also
471 \fI--ftp-ssl-control\fP and \fI--ssl-reqd\fP for different levels of
472 encryption required. (Added in 7.20.0)
474 This option was formerly known as \fI--ftp-ssl\fP (Added in 7.11.0) and that
475 can still be used but will be removed in a future version.
476 .IP "--ftp-ssl-control"
477 (FTP) Require SSL/TLS for the FTP login, clear for transfer.  Allows secure
478 authentication, but non-encrypted data transfers for efficiency.  Fails the
479 transfer if the server doesn't support SSL/TLS.  (Added in 7.16.0)
480 .IP "--ssl-reqd"
481 (FTP, POP3, IMAP, SMTP) Require SSL/TLS for the connection.  Terminates the
482 connection if the server doesn't support SSL/TLS. (Added in 7.20.0)
484 This option was formerly known as \fI--ftp-ssl-reqd\fP (added in 7.15.5) and
485 that can still be used but will be removed in a future version.
486 .IP "--ftp-ssl-ccc"
487 (FTP) Use CCC (Clear Command Channel)
488 Shuts down the SSL/TLS layer after authenticating. The rest of the
489 control channel communication will be unencrypted. This allows
490 NAT routers to follow the FTP transaction. The default mode is
491 passive. See --ftp-ssl-ccc-mode for other modes.
492 (Added in 7.16.1)
493 .IP "--ftp-ssl-ccc-mode [active/passive]"
494 (FTP) Use CCC (Clear Command Channel)
495 Sets the CCC mode. The passive mode will not initiate the shutdown, but
496 instead wait for the server to do it, and will not reply to the
497 shutdown from the server. The active mode initiates the shutdown and
498 waits for a reply from the server.
499 (Added in 7.16.2)
500 .IP "-F/--form <name=content>"
501 (HTTP) This lets curl emulate a filled-in form in which a user has pressed the
502 submit button. This causes curl to POST data using the Content-Type
503 multipart/form-data according to RFC2388. This enables uploading of binary
504 files etc. To force the 'content' part to be a file, prefix the file name
505 with an @ sign. To just get the content part from a file, prefix the file name
506 with the symbol <. The difference between @ and < is then that @ makes a file
507 get attached in the post as a file upload, while the < makes a text field and
508 just get the contents for that text field from a file.
510 Example, to send your password file to the server, where
511 \&'password' is the name of the form-field to which /etc/passwd will be the
512 input:
514 \fBcurl\fP -F password=@/etc/passwd www.mypasswords.com
516 To read the file's content from stdin instead of a file, use - where the file
517 name should've been. This goes for both @ and < constructs.
519 You can also tell curl what Content-Type to use by using 'type=', in a manner
520 similar to:
522 \fBcurl\fP -F "web=@index.html;type=text/html" url.com
526 \fBcurl\fP -F "name=daniel;type=text/foo" url.com
528 You can also explicitly change the name field of an file upload part by
529 setting filename=, like this:
531 \fBcurl\fP -F "file=@localfile;filename=nameinpost" url.com
533 See further examples and details in the MANUAL.
535 This option can be used multiple times.
536 .IP "--form-string <name=string>"
537 (HTTP) Similar to \fI--form\fP except that the value string for the named
538 parameter is used literally. Leading \&'@' and \&'<' characters, and the
539 \&';type=' string in the value have no special meaning. Use this in preference
540 to \fI--form\fP if there's any possibility that the string value may
541 accidentally trigger the \&'@' or \&'<' features of \fI--form\fP.
542 .IP "-g/--globoff"
543 This option switches off the "URL globbing parser". When you set this option,
544 you can specify URLs that contain the letters {}[] without having them being
545 interpreted by curl itself. Note that these letters are not normal legal URL
546 contents but they should be encoded according to the URI standard.
547 .IP "-G/--get"
548 When used, this option will make all data specified with \fI-d/--data\fP or
549 \fI--data-binary\fP to be used in a HTTP GET request instead of the POST
550 request that otherwise would be used. The data will be appended to the URL
551 with a '?' separator.
553 If used in combination with -I, the POST data will instead be appended to the
554 URL with a HEAD request.
556 If this option is used several times, the following occurrences make no
557 difference. This is because undoing a GET doesn't make sense, but you should
558 then instead enforce the alternative method you prefer.
559 .IP "-h/--help"
560 Usage help.
561 .IP "-H/--header <header>"
562 (HTTP) Extra header to use when getting a web page. You may specify any number
563 of extra headers. Note that if you should add a custom header that has the
564 same name as one of the internal ones curl would use, your externally set
565 header will be used instead of the internal one. This allows you to make even
566 trickier stuff than curl would normally do. You should not replace internally
567 set headers without knowing perfectly well what you're doing. Remove an
568 internal header by giving a replacement without content on the right side of
569 the colon, as in: -H \&"Host:".
571 curl will make sure that each header you add/replace is sent with the proper
572 end-of-line marker, you should thus \fBnot\fP add that as a part of the header
573 content: do not add newlines or carriage returns, they will only mess things up
574 for you.
576 See also the \fI-A/--user-agent\fP and \fI-e/--referer\fP options.
578 This option can be used multiple times to add/replace/remove multiple headers.
579 .IP "--hostpubmd5 <md5>"
580 Pass a string containing 32 hexadecimal digits. The string should be the 128
581 bit MD5 checksum of the remote host's public key, curl will refuse the
582 connection with the host unless the md5sums match. This option is only for SCP
583 and SFTP transfers. (Added in 7.17.1)
584 .IP "--ignore-content-length"
585 (HTTP)
586 Ignore the Content-Length header. This is particularly useful for servers
587 running Apache 1.x, which will report incorrect Content-Length for files
588 larger than 2 gigabytes.
589 .IP "-i/--include"
590 (HTTP) Include the HTTP-header in the output. The HTTP-header includes things
591 like server-name, date of the document, HTTP-version and more...
592 .IP "--interface <name>"
593 Perform an operation using a specified interface. You can enter interface
594 name, IP address or host name. An example could look like:
596  curl --interface eth0:1 http://www.netscape.com/
598 If this option is used several times, the last one will be used.
599 .IP "-I/--head"
600 (HTTP/FTP/FILE)
601 Fetch the HTTP-header only! HTTP-servers feature the command HEAD
602 which this uses to get nothing but the header of a document. When used
603 on a FTP or FILE file, curl displays the file size and last modification
604 time only.
605 .IP "-j/--junk-session-cookies"
606 (HTTP) When curl is told to read cookies from a given file, this option will
607 make it discard all "session cookies". This will basically have the same effect
608 as if a new session is started. Typical browsers always discard session
609 cookies when they're closed down.
610 .IP "-J/--remote-header-name"
611 (HTTP) This option tells the -O/--remote-name option to use the server-specified
612 Content-Disposition filename instead of extracting a filename from the URL.
613 .IP "-k/--insecure"
614 (SSL) This option explicitly allows curl to perform "insecure" SSL connections
615 and transfers. All SSL connections are attempted to be made secure by using
616 the CA certificate bundle installed by default. This makes all connections
617 considered "insecure" fail unless \fI-k/--insecure\fP is used.
619 See this online resource for further details:
620 \fBhttp://curl.haxx.se/docs/sslcerts.html\fP
621 .IP "--keepalive-time <seconds>"
622 This option sets the time a connection needs to remain idle before sending
623 keepalive probes and the time between individual keepalive probes. It is
624 currently effective on operating systems offering the TCP_KEEPIDLE and
625 TCP_KEEPINTVL socket options (meaning Linux, recent AIX, HP-UX and more). This
626 option has no effect if \fI--no-keepalive\fP is used. (Added in 7.18.0)
628 If this option is used multiple times, the last occurrence sets the amount.
629 .IP "--key <key>"
630 (SSL/SSH) Private key file name. Allows you to provide your private key in this
631 separate file.
633 If this option is used several times, the last one will be used.
634 .IP "--key-type <type>"
635 (SSL) Private key file type. Specify which type your \fI--key\fP provided
636 private key is. DER, PEM, and ENG are supported. If not specified, PEM is
637 assumed.
639 If this option is used several times, the last one will be used.
640 .IP "--krb <level>"
641 (FTP) Enable Kerberos authentication and use. The level must be entered and
642 should be one of 'clear', 'safe', 'confidential', or 'private'. Should you use
643 a level that is not one of these, 'private' will instead be used.
645 This option requires a library built with kerberos4 or GSSAPI
646 (GSS-Negotiate) support. This is not very common. Use \fI-V/--version\fP to
647 see if your curl supports it.
649 If this option is used several times, the last one will be used.
650 .IP "-K/--config <config file>"
651 Specify which config file to read curl arguments from. The config file is a
652 text file in which command line arguments can be written which then will be
653 used as if they were written on the actual command line. Options and their
654 parameters must be specified on the same config file line, separated by
655 whitespace, colon, the equals sign or any combination thereof (however,
656 the preferred separator is the equals sign). If the parameter is to contain
657 whitespace, the parameter must be enclosed within quotes. Within double
658 quotes, the following escape sequences are available: \\\\, \\", \\t, \\n,
659 \\r and \\v. A backslash preceding any other letter is ignored. If the
660 first column of a config line is a '#' character, the rest of the line will be
661 treated as a comment. Only write one option per physical line in the config
662 file.
664 Specify the filename to -K/--config as '-' to make curl read the file from
665 stdin.
667 Note that to be able to specify a URL in the config file, you need to specify
668 it using the \fI--url\fP option, and not by simply writing the URL on its own
669 line. So, it could look similar to this:
671 url = "http://curl.haxx.se/docs/"
673 Long option names can optionally be given in the config file without the
674 initial double dashes.
676 When curl is invoked, it always (unless \fI-q\fP is used) checks for a default
677 config file and uses it if found. The default config file is checked for in
678 the following places in this order:
680 1) curl tries to find the "home dir": It first checks for the CURL_HOME and
681 then the HOME environment variables. Failing that, it uses getpwuid() on
682 UNIX-like systems (which returns the home dir given the current user in your
683 system). On Windows, it then checks for the APPDATA variable, or as a last
684 resort the '%USERPROFILE%\\Application Data'.
686 2) On windows, if there is no _curlrc file in the home dir, it checks for one
687 in the same dir the curl executable is placed. On UNIX-like systems, it will
688 simply try to load .curlrc from the determined home dir.
691 # --- Example file ---
692 # this is a comment
693 url = "curl.haxx.se"
694 output = "curlhere.html"
695 user-agent = "superagent/1.0"
697 # and fetch another URL too
698 url = "curl.haxx.se/docs/manpage.html"
700 referer = "http://nowhereatall.com/"
701 # --- End of example file ---
704 This option can be used multiple times to load multiple config files.
705 .IP "--libcurl <file>"
706 Append this option to any ordinary curl command line, and you will get a
707 libcurl-using source code written to the file that does the equivalent
708 of what your command-line operation does!
710 NOTE: this does not properly support -F and the sending of multipart
711 formposts, so in those cases the output program will be missing necessary
712 calls to \fIcurl_formadd(3)\fP, and possibly more.
714 If this option is used several times, the last given file name will be
715 used. (Added in 7.16.1)
716 .IP "--limit-rate <speed>"
717 Specify the maximum transfer rate you want curl to use. This feature is useful
718 if you have a limited pipe and you'd like your transfer not to use your entire
719 bandwidth.
721 The given speed is measured in bytes/second, unless a suffix is appended.
722 Appending 'k' or 'K' will count the number as kilobytes, 'm' or M' makes it
723 megabytes, while 'g' or 'G' makes it gigabytes. Examples: 200K, 3m and 1G.
725 The given rate is the average speed counted during the entire transfer. It
726 means that curl might use higher transfer speeds in short bursts, but over
727 time it uses no more than the given rate.
729 If you also use the \fI-Y/--speed-limit\fP option, that option will take
730 precedence and might cripple the rate-limiting slightly, to help keeping the
731 speed-limit logic working.
733 If this option is used several times, the last one will be used.
734 .IP "-l/--list-only"
735 (FTP)
736 When listing an FTP directory, this switch forces a name-only view.
737 Especially useful if you want to machine-parse the contents of an FTP
738 directory since the normal directory view doesn't use a standard look
739 or format.
741 This option causes an FTP NLST command to be sent.  Some FTP servers
742 list only files in their response to NLST; they do not include
743 subdirectories and symbolic links.
745 .IP "--local-port <num>[-num]"
746 Set a preferred number or range of local port numbers to use for the
747 connection(s).  Note that port numbers by nature are a scarce resource that
748 will be busy at times so setting this range to something too narrow might
749 cause unnecessary connection setup failures. (Added in 7.15.2)
750 .IP "-L/--location"
751 (HTTP/HTTPS) If the server reports that the requested page has moved to a
752 different location (indicated with a Location: header and a 3XX response code),
753 this option will make curl redo the request on the new place. If used together
754 with \fI-i/--include\fP or \fI-I/--head\fP, headers from all requested pages
755 will be shown. When authentication is used, curl only sends its credentials to
756 the initial host. If a redirect takes curl to a different host, it won't be
757 able to intercept the user+password. See also \fI--location-trusted\fP on how
758 to change this. You can limit the amount of redirects to follow by using the
759 \fI--max-redirs\fP option.
761 When curl follows a redirect and the request is not a plain GET (for example
762 POST or PUT), it will do the following request with a GET if the HTTP response
763 was 301, 302, or 303. If the response code was any other 3xx code, curl will
764 re-send the following request using the same unmodified method.
765 .IP "--location-trusted"
766 (HTTP/HTTPS) Like \fI-L/--location\fP, but will allow sending the name +
767 password to all hosts that the site may redirect to. This may or may not
768 introduce a security breach if the site redirects you to a site to which
769 you'll send your authentication info (which is plaintext in the case of HTTP
770 Basic authentication).
771 .IP "--mail-rcpt <address>"
772 (SMTP) Specify a single address that the given mail should get sent to. This
773 option can be used multiple times to specify many recipients.
775 (Added in 7.20.0)
776 .IP "--mail-from <address>"
777 (SMTP) Specify a single address that the given mail should get sent from.
779 (Added in 7.20.0)
780 .IP "--max-filesize <bytes>"
781 Specify the maximum size (in bytes) of a file to download. If the file
782 requested is larger than this value, the transfer will not start and curl will
783 return with exit code 63.
785 \fBNOTE:\fP The file size is not always known prior to download, and for such files
786 this option has no effect even if the file transfer ends up being larger than
787 this given limit. This concerns both FTP and HTTP transfers.
788 .IP "-m/--max-time <seconds>"
789 Maximum time in seconds that you allow the whole operation to take.  This is
790 useful for preventing your batch jobs from hanging for hours due to slow
791 networks or links going down.  See also the \fI--connect-timeout\fP option.
793 If this option is used several times, the last one will be used.
794 .IP "-M/--manual"
795 Manual. Display the huge help text.
796 .IP "-n/--netrc"
797 Makes curl scan the \fI.netrc\fP (\fI_netrc\fP on Windows) file in the user's
798 home directory for login name and password. This is typically used for FTP on
799 UNIX. If used with HTTP, curl will enable user authentication. See
800 .BR netrc(4)
802 .BR ftp(1)
803 for details on the file format. Curl will not complain if that file
804 doesn't have the right permissions (it should not be either world- or
805 group-readable). The environment variable "HOME" is used to find the home
806 directory.
808 A quick and very simple example of how to setup a \fI.netrc\fP to allow curl
809 to FTP to the machine host.domain.com with user name \&'myself' and password
810 \&'secret' should look similar to:
812 .B "machine host.domain.com login myself password secret"
813 .IP "--netrc-optional"
814 Very similar to \fI--netrc\fP, but this option makes the .netrc usage
815 \fBoptional\fP and not mandatory as the \fI--netrc\fP option does.
816 .IP "--negotiate"
817 (HTTP) Enables GSS-Negotiate authentication. The GSS-Negotiate method was
818 designed by Microsoft and is used in their web applications. It is primarily
819 meant as a support for Kerberos5 authentication but may be also used along
820 with another authentication method. For more information see IETF draft
821 draft-brezak-spnego-http-04.txt.
823 If you want to enable Negotiate for your proxy authentication, then use
824 \fI--proxy-negotiate\fP.
826 This option requires a library built with GSSAPI support. This is
827 not very common. Use \fI-V/--version\fP to see if your version supports
828 GSS-Negotiate.
830 When using this option, you must also provide a fake -u/--user option to
831 activate the authentication code properly. Sending a '-u :' is enough as the
832 user name and password from the -u option aren't actually used.
834 If this option is used several times, the following occurrences make no
835 difference.
836 .IP "-N/--no-buffer"
837 Disables the buffering of the output stream. In normal work situations, curl
838 will use a standard buffered output stream that will have the effect that it
839 will output the data in chunks, not necessarily exactly when the data arrives.
840 Using this option will disable that buffering.
842 Note that this is the negated option name documented. You can thus use
843 \fI--buffer\fP to enforce the buffering.
844 .IP "--no-keepalive"
845 Disables the use of keepalive messages on the TCP connection, as by default
846 curl enables them.
848 Note that this is the negated option name documented. You can thus use
849 \fI--keepalive\fP to enforce keepalive.
850 .IP "--no-sessionid"
851 (SSL) Disable curl's use of SSL session-ID caching.  By default all transfers
852 are done using the cache. Note that while nothing should ever get hurt by
853 attempting to reuse SSL session-IDs, there seem to be broken SSL
854 implementations in the wild that may require you to disable this in order for
855 you to succeed. (Added in 7.16.0)
857 Note that this is the negated option name documented. You can thus use
858 \fI--sessionid\fP to enforce session-ID caching.
859 .IP "--noproxy <no-proxy-list>"
860 Comma-separated list of hosts which do not use a proxy, if one is specified.
861 The only wildcard is a single * character, which matches all hosts, and
862 effectively disables the proxy. Each name in this list is matched as either
863 a domain which contains the hostname, or the hostname itself. For example,
864 local.com would match local.com, local.com:80, and www.local.com, but not
865 www.notlocal.com.  (Added in 7.19.4).
866 .IP "--ntlm"
867 (HTTP) Enables NTLM authentication. The NTLM authentication method was
868 designed by Microsoft and is used by IIS web servers. It is a proprietary
869 protocol, reverse-engineered by clever people and implemented in curl based
870 on their efforts. This kind of behavior should not be endorsed, you should
871 encourage everyone who uses NTLM to switch to a public and documented
872 authentication method instead, such as Digest.
874 If you want to enable NTLM for your proxy authentication, then use
875 \fI--proxy-ntlm\fP.
877 This option requires a library built with SSL support. Use
878 \fI-V/--version\fP to see if your curl supports NTLM.
880 If this option is used several times, the following occurrences make no
881 difference.
882 .IP "-o/--output <file>"
883 Write output to <file> instead of stdout. If you are using {} or [] to fetch
884 multiple documents, you can use '#' followed by a number in the <file>
885 specifier. That variable will be replaced with the current string for the URL
886 being fetched. Like in:
888   curl http://{one,two}.site.com -o "file_#1.txt"
890 or use several variables like:
892   curl http://{site,host}.host[1-5].com -o "#1_#2"
894 You may use this option as many times as the number of URLs you have.
896 See also the \fI--create-dirs\fP option to create the local directories
897 dynamically. Specifying the output as '-' (a single dash) will force the
898 output to be done to stdout.
899 .IP "-O/--remote-name"
900 Write output to a local file named like the remote file we get. (Only the file
901 part of the remote file is used, the path is cut off.)
903 The remote file name to use for saving is extracted from the given URL,
904 nothing else.
906 You may use this option as many times as the number of URLs you have.
907 .IP "--remote-name-all"
908 This option changes the default action for all given URLs to be dealt with as
909 if \fI-O/--remote-name\fP were used for each one. So if you want to disable
910 that for a specific URL after \fI--remote-name-all\fP has been used, you must
911 use "-o -" or \fI--no-remote-name\fP. (Added in 7.19.0)
912 .IP "--pass <phrase>"
913 (SSL/SSH) Passphrase for the private key
915 If this option is used several times, the last one will be used.
916 .IP "--post301"
917 Tells curl to respect RFC 2616/10.3.2 and not convert POST requests into GET
918 requests when following a 301 redirection. The non-RFC behaviour is ubiquitous
919 in web browsers, so curl does the conversion by default to maintain
920 consistency. However, a server may require a POST to remain a POST after such
921 a redirection. This option is meaningful only when using \fI-L/--location\fP
922 (Added in 7.17.1)
923 .IP "--post302"
924 Tells curl to respect RFC 2616/10.3.2 and not convert POST requests into GET
925 requests when following a 302 redirection. The non-RFC behaviour is ubiquitous
926 in web browsers, so curl does the conversion by default to maintain
927 consistency. However, a server may require a POST to remain a POST after such
928 a redirection. This option is meaningful only when using \fI-L/--location\fP
929 (Added in 7.19.1)
930 .IP "--proto <protocols>"
931 Tells curl to use the listed protocols for its initial retrieval. Protocols
932 are evaluated left to right, are comma separated, and are each a protocol
933 name or 'all', optionally prefixed by zero or more modifiers. Available
934 modifiers are:
936 .TP 3
937 .B +
938 Permit this protocol in addition to protocols already permitted (this is
939 the default if no modifier is used).
941 .B -
942 Deny this protocol, removing it from the list of protocols already permitted.
944 .B =
945 Permit only this protocol (ignoring the list already permitted), though
946 subject to later modification by subsequent entries in the comma separated
947 list.
950 For example:
952 .TP 15
953 .B --proto -ftps
954 uses the default protocols, but disables ftps
956 .B  --proto -all,https,+http
957 only enables http and https
959 .B --proto =http,https
960 also only enables http and https
963 Unknown protocols produce a warning. This allows scripts to safely rely on
964 being able to disable potentially dangerous protocols, without relying upon
965 support for that protocol being built into curl to avoid an error.
967 This option can be used multiple times, in which case the effect is the same
968 as concatenating the protocols into one instance of the option.
970 (Added in 7.20.2)
971 .IP "--proto-redir <protocols>"
972 Tells curl to use the listed protocols after a redirect. See --proto for
973 how protocols are represented.
975 (Added in 7.20.2)
976 .IP "--proxy-anyauth"
977 Tells curl to pick a suitable authentication method when communicating with
978 the given proxy. This might cause an extra request/response round-trip. (Added
979 in 7.13.2)
980 .IP "--proxy-basic"
981 Tells curl to use HTTP Basic authentication when communicating with the given
982 proxy. Use \fI--basic\fP for enabling HTTP Basic with a remote host. Basic is
983 the default authentication method curl uses with proxies.
984 .IP "--proxy-digest"
985 Tells curl to use HTTP Digest authentication when communicating with the given
986 proxy. Use \fI--digest\fP for enabling HTTP Digest with a remote host.
987 .IP "--proxy-negotiate"
988 Tells curl to use HTTP Negotiate authentication when communicating
989 with the given proxy. Use \fI--negotiate\fP for enabling HTTP Negotiate
990 with a remote host. (Added in 7.17.1)
991 .IP "--proxy-ntlm"
992 Tells curl to use HTTP NTLM authentication when communicating with the given
993 proxy. Use \fI--ntlm\fP for enabling NTLM with a remote host.
994 .IP "--proxy1.0 <proxyhost[:port]>"
995 Use the specified HTTP 1.0 proxy. If the port number is not specified, it is
996 assumed at port 1080.
998 The only difference between this and the HTTP proxy option (\fI-x/--proxy\fP),
999 is that attempts to use CONNECT through the proxy will specify an HTTP 1.0
1000 protocol instead of the default HTTP 1.1.
1001 .IP "-p/--proxytunnel"
1002 When an HTTP proxy is used (\fI-x/--proxy\fP), this option will cause non-HTTP
1003 protocols to attempt to tunnel through the proxy instead of merely using it to
1004 do HTTP-like operations. The tunnel approach is made with the HTTP proxy
1005 CONNECT request and requires that the proxy allows direct connect to the
1006 remote port number curl wants to tunnel through to.
1007 .IP "--pubkey <key>"
1008 (SSH) Public key file name. Allows you to provide your public key in this
1009 separate file.
1011 If this option is used several times, the last one will be used.
1012 .IP "-P/--ftp-port <address>"
1013 (FTP) Reverses the default initiator/listener roles when connecting with
1014 FTP. This switch makes curl use active mode. In practice, curl then tells the
1015 server to connect back to the client's specified address and port, while
1016 passive mode asks the server to setup an IP address and port for it to connect
1017 to. <address> should be one of:
1019 .IP interface
1020 i.e "eth0" to specify which interface's IP address you want to use (Unix only)
1021 .IP "IP address"
1022 i.e "192.168.10.1" to specify the exact IP address
1023 .IP "host name"
1024 i.e "my.host.domain" to specify the machine
1025 .IP "-"
1026 make curl pick the same IP address that is already used for the control
1027 connection
1030 If this option is used several times, the last one will be used. Disable the
1031 use of PORT with \fI--ftp-pasv\fP. Disable the attempt to use the EPRT command
1032 instead of PORT by using \fI--disable-eprt\fP. EPRT is really PORT++.
1034 Starting in 7.19.5, you can append \&":[start]-[end]\&" to the right of the
1035 address, to tell curl what TCP port range to use. That means you specify a
1036 port range, from a lower to a higher number. A single number works as well,
1037 but do note that it increases the risk of failure since the port may not be
1038 available.
1039 .IP "-q"
1040 If used as the first parameter on the command line, the \fIcurlrc\fP config
1041 file will not be read and used. See the \fI-K/--config\fP for details on the
1042 default config file search path.
1043 .IP "-Q/--quote <command>"
1044 (FTP/SFTP) Send an arbitrary command to the remote FTP or SFTP server. Quote
1045 commands are sent BEFORE the transfer takes place (just after the
1046 initial PWD command in an FTP transfer, to be exact). To make commands
1047 take place after a successful transfer, prefix them with a dash '-'.
1048 To make commands be sent after libcurl has changed the working directory,
1049 just before the transfer command(s), prefix the command with a '+' (this
1050 is only supported for FTP). You may specify any number of commands. If
1051 the server returns failure for one of the commands, the entire operation
1052 will be aborted. You must send syntactically correct FTP commands as
1053 RFC959 defines to FTP servers, or one of the commands listed below to
1054 SFTP servers.  This option can be used multiple times.
1056 SFTP is a binary protocol. Unlike for FTP, libcurl interprets SFTP quote
1057 commands before sending them to the server.  Following is the list of
1058 all supported SFTP quote commands:
1060 .IP "chgrp group file"
1061 The chgrp command sets the group ID of the file named by the file operand to the
1062 group ID specified by the group operand. The group operand is a decimal
1063 integer group ID.
1064 .IP "chmod mode file"
1065 The chmod command modifies the file mode bits of the specified file. The
1066 mode operand is an octal integer mode number.
1067 .IP "chown user file"
1068 The chown command sets the owner of the file named by the file operand to the
1069 user ID specified by the user operand. The user operand is a decimal
1070 integer user ID.
1071 .IP "ln source_file target_file"
1072 The ln and symlink commands create a symbolic link at the target_file location
1073 pointing to the source_file location.
1074 .IP "mkdir directory_name"
1075 The mkdir command creates the directory named by the directory_name operand.
1076 .IP "pwd"
1077 The pwd command returns the absolute pathname of the current working directory.
1078 .IP "rename source target"
1079 The rename command renames the file or directory named by the source
1080 operand to the destination path named by the target operand.
1081 .IP "rm file"
1082 The rm command removes the file specified by the file operand.
1083 .IP "rmdir directory"
1084 The rmdir command removes the directory entry specified by the directory
1085 operand, provided it is empty.
1086 .IP "symlink source_file target_file"
1087 See ln.
1089 .IP "--random-file <file>"
1090 (SSL) Specify the path name to file containing what will be considered as
1091 random data. The data is used to seed the random engine for SSL connections.
1092 See also the \fI--egd-file\fP option.
1093 .IP "-r/--range <range>"
1094 (HTTP/FTP/SFTP/FILE) Retrieve a byte range (i.e a partial document) from a
1095 HTTP/1.1, FTP or SFTP server or a local FILE. Ranges can be specified
1096 in a number of ways.
1098 .TP 10
1099 .B 0-499
1100 specifies the first 500 bytes
1102 .B 500-999
1103 specifies the second 500 bytes
1105 .B -500
1106 specifies the last 500 bytes
1108 .B 9500-
1109 specifies the bytes from offset 9500 and forward
1111 .B 0-0,-1
1112 specifies the first and last byte only(*)(H)
1114 .B 500-700,600-799
1115 specifies 300 bytes from offset 500(H)
1117 .B 100-199,500-599
1118 specifies two separate 100-byte ranges(*)(H)
1121 (*) = NOTE that this will cause the server to reply with a multipart
1122 response!
1124 Only digit characters (0-9) are valid in the 'start' and 'stop' fields of
1125 the \&'start-stop' range syntax. If a non-digit character is given in the range, the server's
1126 response will be unspecified, depending on the server's configuration.
1128 You should also be aware that many HTTP/1.1 servers do not have this feature
1129 enabled, so that when you attempt to get a range, you'll instead get the whole
1130 document.
1132 FTP and SFTP range downloads only support the simple 'start-stop' syntax
1133 (optionally with one of the numbers omitted). FTP use depends on the extended
1134 FTP command SIZE.
1136 If this option is used several times, the last one will be used.
1137 .IP "--raw"
1138 When used, it disables all internal HTTP decoding of content or transfer
1139 encodings and instead makes them passed on unaltered, raw. (Added in 7.16.2)
1140 .IP "-R/--remote-time"
1141 When used, this will make libcurl attempt to figure out the timestamp of the
1142 remote file, and if that is available make the local file get that same
1143 timestamp.
1144 .IP "--retry <num>"
1145 If a transient error is returned when curl tries to perform a transfer, it
1146 will retry this number of times before giving up. Setting the number to 0
1147 makes curl do no retries (which is the default). Transient error means either:
1148 a timeout, an FTP 4xx response code or an HTTP 5xx response code.
1150 When curl is about to retry a transfer, it will first wait one second and then
1151 for all forthcoming retries it will double the waiting time until it reaches
1152 10 minutes which then will be the delay between the rest of the retries.  By
1153 using \fI--retry-delay\fP you disable this exponential backoff algorithm. See
1154 also \fI--retry-max-time\fP to limit the total time allowed for
1155 retries. (Added in 7.12.3)
1157 If this option is used multiple times, the last occurrence decide the amount.
1158 .IP "--retry-delay <seconds>"
1159 Make curl sleep this amount of time before each retry when a transfer has
1160 failed with a transient error (it changes the default backoff time algorithm
1161 between retries). This option is only interesting if \fI--retry\fP is also
1162 used. Setting this delay to zero will make curl use the default backoff time.
1163 (Added in 7.12.3)
1165 If this option is used multiple times, the last occurrence determines the amount.
1166 .IP "--retry-max-time <seconds>"
1167 The retry timer is reset before the first transfer attempt. Retries will be
1168 done as usual (see \fI--retry\fP) as long as the timer hasn't reached this
1169 given limit. Notice that if the timer hasn't reached the limit, the request
1170 will be made and while performing, it may take longer than this given time
1171 period. To limit a single request\'s maximum time, use \fI-m/--max-time\fP.
1172 Set this option to zero to not timeout retries. (Added in 7.12.3)
1174 If this option is used multiple times, the last occurrence determines the
1175 amount.
1176 .IP "-s/--silent"
1177 Silent or quiet mode. Don't show progress meter or error messages.  Makes
1178 Curl mute.
1179 .IP "-S/--show-error"
1180 When used with -s it makes curl show an error message if it fails.
1181 .IP "--socks4 <host[:port]>"
1182 Use the specified SOCKS4 proxy. If the port number is not specified, it is
1183 assumed at port 1080. (Added in 7.15.2)
1185 This option overrides any previous use of \fI-x/--proxy\fP, as they are
1186 mutually exclusive.
1188 If this option is used several times, the last one will be used.
1189 .IP "--socks4a <host[:port]>"
1190 Use the specified SOCKS4a proxy. If the port number is not specified, it is
1191 assumed at port 1080. (Added in 7.18.0)
1193 This option overrides any previous use of \fI-x/--proxy\fP, as they are
1194 mutually exclusive.
1196 If this option is used several times, the last one will be used.
1197 .IP "--socks5-hostname <host[:port]>"
1198 Use the specified SOCKS5 proxy (and let the proxy resolve the host name). If
1199 the port number is not specified, it is assumed at port 1080. (Added in
1200 7.18.0)
1202 This option overrides any previous use of \fI-x/--proxy\fP, as they are
1203 mutually exclusive.
1205 If this option is used several times, the last one will be used. (This option
1206 was previously wrongly documented and used as --socks without the number
1207 appended.)
1208 .IP "--socks5 <host[:port]>"
1209 Use the specified SOCKS5 proxy - but resolve the host name locally. If the
1210 port number is not specified, it is assumed at port 1080.
1212 This option overrides any previous use of \fI-x/--proxy\fP, as they are
1213 mutually exclusive.
1215 If this option is used several times, the last one will be used. (This option
1216 was previously wrongly documented and used as --socks without the number
1217 appended.)
1219 This option (as well as \fI--socks4\fP) does not work with IPV6, FTPS or LDAP.
1220 .IP "--socks5-gssapi-service <servicename>"
1221 The default service name for a socks server is rcmd/server-fqdn. This option
1222 allows you to change it.
1224 Examples:
1225  --socks5 proxy-name \fI--socks5-gssapi-service\fP sockd   would use
1226 sockd/proxy-name
1227  --socks5 proxy-name \fI--socks5-gssapi-service\fP sockd/real-name   would use
1228 sockd/real-name for cases where the proxy-name does not match the princpal name.
1229  (Added in 7.19.4).
1230 .IP "--socks5-gssapi-nec"
1231 As part of the gssapi negotiation a protection mode is negotiated. The rfc1961
1232 says in section 4.3/4.4 it should be protected, but the NEC reference
1233 implementation does not.  The option \fI--socks5-gssapi-nec\fP allows the
1234 unprotected exchange of the protection mode negotiation. (Added in 7.19.4).
1235 .IP "--stderr <file>"
1236 Redirect all writes to stderr to the specified file instead. If the file name
1237 is a plain '-', it is instead written to stdout. This option has no point when
1238 you're using a shell with decent redirecting capabilities.
1240 If this option is used several times, the last one will be used.
1241 .IP "--tcp-nodelay"
1242 Turn on the TCP_NODELAY option. See the \fIcurl_easy_setopt(3)\fP man page for
1243 details about this option. (Added in 7.11.2)
1244 .IP "-t/--telnet-option <OPT=val>"
1245 Pass options to the telnet protocol. Supported options are:
1247 TTYPE=<term> Sets the terminal type.
1249 XDISPLOC=<X display> Sets the X display location.
1251 NEW_ENV=<var,val> Sets an environment variable.
1252 .IP "--tftp-blksize <value>"
1253 (TFTP) Set TFTP BLKSIZE option (must be >512). This is the block size that
1254 curl will try to use when tranferring data to or from a TFTP server. By
1255 default 512 bytes will be used.
1257 If this option is used several times, the last one will be used.
1259 (Added in 7.20.0)
1260 .IP "-T/--upload-file <file>"
1261 This transfers the specified local file to the remote URL. If there is no file
1262 part in the specified URL, Curl will append the local file name. NOTE that you
1263 must use a trailing / on the last directory to really prove to Curl that there
1264 is no file name or curl will think that your last directory name is the remote
1265 file name to use. That will most likely cause the upload operation to fail. If
1266 this is used on a HTTP(S) server, the PUT command will be used.
1268 Use the file name "-" (a single dash) to use stdin instead of a given file.
1269 Alternately, the file name "." (a single period) may be specified instead
1270 of "-" to use stdin in non-blocking mode to allow reading server output
1271 while stdin is being uploaded.
1273 You can specify one -T for each URL on the command line. Each -T + URL pair
1274 specifies what to upload and to where. curl also supports "globbing" of the -T
1275 argument, meaning that you can upload multiple files to a single URL by using
1276 the same URL globbing style supported in the URL, like this:
1278 curl -T "{file1,file2}" http://www.uploadtothissite.com
1280 or even
1282 curl -T "img[1-1000].png" ftp://ftp.picturemania.com/upload/
1283 .IP "--trace <file>"
1284 Enables a full trace dump of all incoming and outgoing data, including
1285 descriptive information, to the given output file. Use "-" as filename to have
1286 the output sent to stdout.
1288 This option overrides previous uses of \fI-v/--verbose\fP or
1289 \fI--trace-ascii\fP.
1291 If this option is used several times, the last one will be used.
1292 .IP "--trace-ascii <file>"
1293 Enables a full trace dump of all incoming and outgoing data, including
1294 descriptive information, to the given output file. Use "-" as filename to have
1295 the output sent to stdout.
1297 This is very similar to \fI--trace\fP, but leaves out the hex part and only
1298 shows the ASCII part of the dump. It makes smaller output that might be easier
1299 to read for untrained humans.
1301 This option overrides previous uses of \fI-v/--verbose\fP or \fI--trace\fP.
1303 If this option is used several times, the last one will be used.
1304 .IP "--trace-time"
1305 Prepends a time stamp to each trace or verbose line that curl displays.
1306 (Added in 7.14.0)
1307 .IP "-u/--user <user:password>"
1308 Specify the user name and password to use for server authentication. Overrides
1309 \fI-n/--netrc\fP and \fI--netrc-optional\fP.
1311 If you just give the user name (without entering a colon) curl will prompt for
1312 a password.
1314 If you use an SSPI-enabled curl binary and do NTLM authentication, you can
1315 force curl to pick up the user name and password from your environment by
1316 simply specifying a single colon with this option: "-u :".
1318 If this option is used several times, the last one will be used.
1319 .IP "-U/--proxy-user <user:password>"
1320 Specify the user name and password to use for proxy authentication.
1322 If you use an SSPI-enabled curl binary and do NTLM authentication, you can
1323 force curl to pick up the user name and password from your environment by
1324 simply specifying a single colon with this option: "-U :".
1326 If this option is used several times, the last one will be used.
1327 .IP "--url <URL>"
1328 Specify a URL to fetch. This option is mostly handy when you want to specify
1329 URL(s) in a config file.
1331 This option may be used any number of times. To control where this URL is
1332 written, use the \fI-o/--output\fP or the \fI-O/--remote-name\fP options.
1333 .IP "-v/--verbose"
1334 Makes the fetching more verbose/talkative. Mostly useful for debugging. A line
1335 starting with '>' means "header data" sent by curl, '<' means "header data"
1336 received by curl that is hidden in normal cases, and a line starting with '*'
1337 means additional info provided by curl.
1339 Note that if you only want HTTP headers in the output, \fI-i/--include\fP
1340 might be the option you're looking for.
1342 If you think this option still doesn't give you enough details, consider using
1343 \fI--trace\fP or \fI--trace-ascii\fP instead.
1345 This option overrides previous uses of \fI--trace-ascii\fP or \fI--trace\fP.
1347 Use \fI-S/--silent\fP to make curl quiet.
1348 .IP "-V/--version"
1349 Displays information about curl and the libcurl version it uses.
1351 The first line includes the full version of curl, libcurl and other 3rd party
1352 libraries linked with the executable.
1354 The second line (starts with "Protocols:") shows all protocols that libcurl
1355 reports to support.
1357 The third line (starts with "Features:") shows specific features libcurl
1358 reports to offer. Available features include:
1360 .IP "IPv6"
1361 You can use IPv6 with this.
1362 .IP "krb4"
1363 Krb4 for FTP is supported.
1364 .IP "SSL"
1365 HTTPS and FTPS are supported.
1366 .IP "libz"
1367 Automatic decompression of compressed files over HTTP is supported.
1368 .IP "NTLM"
1369 NTLM authentication is supported.
1370 .IP "GSS-Negotiate"
1371 Negotiate authentication and krb5 for FTP is supported.
1372 .IP "Debug"
1373 This curl uses a libcurl built with Debug. This enables more error-tracking
1374 and memory debugging etc. For curl-developers only!
1375 .IP "AsynchDNS"
1376 This curl uses asynchronous name resolves.
1377 .IP "SPNEGO"
1378 SPNEGO Negotiate authentication is supported.
1379 .IP "Largefile"
1380 This curl supports transfers of large files, files larger than 2GB.
1381 .IP "IDN"
1382 This curl supports IDN - international domain names.
1383 .IP "SSPI"
1384 SSPI is supported. If you use NTLM and set a blank user name, curl will
1385 authenticate with your current user and password.
1387 .IP "-w/--write-out <format>"
1388 Defines what to display on stdout after a completed and successful
1389 operation. The format is a string that may contain plain text mixed with any
1390 number of variables. The string can be specified as "string", to get read from
1391 a particular file you specify it "@filename" and to tell curl to read the
1392 format from stdin you write "@-".
1394 The variables present in the output format will be substituted by the value or
1395 text that curl thinks fit, as described below. All variables are specified
1396 as %{variable_name} and to output a normal % you just write them as
1397 %%. You can output a newline by using \\n, a carriage return with \\r and a tab
1398 space with \\t.
1400 .B NOTE:
1401 The %-symbol is a special symbol in the win32-environment, where all
1402 occurrences of % must be doubled when using this option.
1404 The variables available at this point are:
1406 .TP 15
1407 .B url_effective
1408 The URL that was fetched last. This is most meaningful if you've told curl
1409 to follow location: headers.
1411 .B http_code
1412 The numerical response code that was found in the last retrieved HTTP(S) or
1413 FTP(s) transfer. In 7.18.2 the alias \fBresponse_code\fP was added to show the
1414 same info.
1416 .B http_connect
1417 The numerical code that was found in the last response (from a proxy) to a
1418 curl CONNECT request. (Added in 7.12.4)
1420 .B time_total
1421 The total time, in seconds, that the full operation lasted. The time will be
1422 displayed with millisecond resolution.
1424 .B time_namelookup
1425 The time, in seconds, it took from the start until the name resolving was
1426 completed.
1428 .B time_connect
1429 The time, in seconds, it took from the start until the TCP connect to the
1430 remote host (or proxy) was completed.
1432 .B time_appconnect
1433 The time, in seconds, it took from the start until the SSL/SSH/etc
1434 connect/handshake to the remote host was completed. (Added in 7.19.0)
1436 .B time_pretransfer
1437 The time, in seconds, it took from the start until the file transfer was just
1438 about to begin. This includes all pre-transfer commands and negotiations that
1439 are specific to the particular protocol(s) involved.
1441 .B time_redirect
1442 The time, in seconds, it took for all redirection steps include name lookup,
1443 connect, pretransfer and transfer before the final transaction was
1444 started. time_redirect shows the complete execution time for multiple
1445 redirections. (Added in 7.12.3)
1447 .B time_starttransfer
1448 The time, in seconds, it took from the start until the first byte was just about
1449 to be transferred. This includes time_pretransfer and also the time the
1450 server needed to calculate the result.
1452 .B size_download
1453 The total amount of bytes that were downloaded.
1455 .B size_upload
1456 The total amount of bytes that were uploaded.
1458 .B size_header
1459 The total amount of bytes of the downloaded headers.
1461 .B size_request
1462 The total amount of bytes that were sent in the HTTP request.
1464 .B speed_download
1465 The average download speed that curl measured for the complete download. Bytes
1466 per second.
1468 .B speed_upload
1469 The average upload speed that curl measured for the complete upload. Bytes per
1470 second.
1472 .B content_type
1473 The Content-Type of the requested document, if there was any.
1475 .B num_connects
1476 Number of new connects made in the recent transfer. (Added in 7.12.3)
1478 .B num_redirects
1479 Number of redirects that were followed in the request. (Added in 7.12.3)
1481 .B redirect_url
1482 When a HTTP request was made without -L to follow redirects, this variable
1483 will show the actual URL a redirect \fIwould\fP take you to. (Added in 7.18.2)
1485 .B ftp_entry_path
1486 The initial path libcurl ended up in when logging on to the remote FTP
1487 server. (Added in 7.15.4)
1489 .B ssl_verify_result
1490 The result of the SSL peer certificate verification that was requested. 0
1491 means the verification was successful. (Added in 7.19.0)
1494 If this option is used several times, the last one will be used.
1495 .IP "-x/--proxy <proxyhost[:port]>"
1496 Use the specified HTTP proxy. If the port number is not specified, it is assumed
1497 at port 1080.
1499 This option overrides existing environment variables that set the proxy to
1500 use. If there's an environment variable setting a proxy, you can set proxy to
1501 \&"" to override it.
1503 \fBNote\fP that all operations that are performed over a HTTP proxy will
1504 transparently be converted to HTTP. It means that certain protocol specific
1505 operations might not be available. This is not the case if you can tunnel
1506 through the proxy, as done with the \fI-p/--proxytunnel\fP option.
1508 Starting with 7.14.1, the proxy host can be specified the exact same way as
1509 the proxy environment variables, including the protocol prefix (http://) and
1510 the embedded user + password.
1512 If this option is used several times, the last one will be used.
1513 .IP "-X/--request <command>"
1514 (HTTP) Specifies a custom request method to use when communicating with the
1515 HTTP server.  The specified request will be used instead of the method
1516 otherwise used (which defaults to GET). Read the HTTP 1.1 specification for
1517 details and explanations. Common additional HTTP requests include PUT and
1518 DELETE, but related technologies like WebDAV offers PROPFIND, COPY, MOVE and
1519 more.
1521 (FTP)
1522 Specifies a custom FTP command to use instead of LIST when doing file lists
1523 with FTP.
1525 If this option is used several times, the last one will be used.
1526 .IP "-y/--speed-time <time>"
1527 If a download is slower than speed-limit bytes per second during a speed-time
1528 period, the download gets aborted. If speed-time is used, the default
1529 speed-limit will be 1 unless set with -Y.
1531 This option controls transfers and thus will not affect slow connects etc. If
1532 this is a concern for you, try the \fI--connect-timeout\fP option.
1534 If this option is used several times, the last one will be used.
1535 .IP "-Y/--speed-limit <speed>"
1536 If a download is slower than this given speed (in bytes per second) for
1537 speed-time seconds it gets aborted. speed-time is set with -y and is 30 if
1538 not set.
1540 If this option is used several times, the last one will be used.
1541 .IP "-z/--time-cond <date expression>"
1542 (HTTP/FTP) Request a file that has been modified later than the given time and
1543 date, or one that has been modified before that time. The date expression can
1544 be all sorts of date strings or if it doesn't match any internal ones, it
1545 tries to get the time from a given file name instead! See the
1546 \fIcurl_getdate(3)\fP man pages for date expression details.
1548 Start the date expression with a dash (-) to make it request for a document
1549 that is older than the given date/time, default is a document that is newer
1550 than the specified date/time.
1552 If this option is used several times, the last one will be used.
1553 .IP "--max-redirs <num>"
1554 Set maximum number of redirection-followings allowed. If \fI-L/--location\fP
1555 is used, this option can be used to prevent curl from following redirections
1556 \&"in absurdum". By default, the limit is set to 50 redirections. Set this
1557 option to -1 to make it limitless.
1559 If this option is used several times, the last one will be used.
1560 .IP "-0/--http1.0"
1561 (HTTP) Forces curl to issue its requests using HTTP 1.0 instead of using its
1562 internally preferred: HTTP 1.1.
1563 .IP "-1/--tlsv1"
1564 (SSL)
1565 Forces curl to use TLS version 1 when negotiating with a remote TLS server.
1566 .IP "-2/--sslv2"
1567 (SSL)
1568 Forces curl to use SSL version 2 when negotiating with a remote SSL server.
1569 .IP "-3/--sslv3"
1570 (SSL)
1571 Forces curl to use SSL version 3 when negotiating with a remote SSL server.
1572 .IP "-4/--ipv4"
1573 If libcurl is capable of resolving an address to multiple IP versions (which
1574 it is if it is IPv6-capable), this option tells libcurl to resolve names to
1575 IPv4 addresses only.
1576 .IP "-6/--ipv6"
1577 If libcurl is capable of resolving an address to multiple IP versions (which
1578 it is if it is IPv6-capable), this option tells libcurl to resolve names to
1579 IPv6 addresses only.
1580 .IP "-#/--progress-bar"
1581 Make curl display progress information as a progress bar instead of the
1582 default statistics.
1583 .SH FILES
1584 .I ~/.curlrc
1586 Default config file, see \fI-K/--config\fP for details.
1587 .SH ENVIRONMENT
1588 The environment variables can be specified in lower case or upper case. The
1589 lower case version has precedence. http_proxy is an exception as it is only
1590 available in lower case.
1591 .IP "http_proxy [protocol://]<host>[:port]"
1592 Sets the proxy server to use for HTTP.
1593 .IP "HTTPS_PROXY [protocol://]<host>[:port]"
1594 Sets the proxy server to use for HTTPS.
1595 .IP "FTP_PROXY [protocol://]<host>[:port]"
1596 Sets the proxy server to use for FTP.
1597 .IP "ALL_PROXY [protocol://]<host>[:port]"
1598 Sets the proxy server to use if no protocol-specific proxy is set.
1599 .IP "NO_PROXY <comma-separated list of hosts>"
1600 list of host names that shouldn't go through any proxy. If set to a asterisk
1601 \&'*' only, it matches all hosts.
1602 .SH EXIT CODES
1603 There are a bunch of different error codes and their corresponding error
1604 messages that may appear during bad conditions. At the time of this writing,
1605 the exit codes are:
1606 .IP 1
1607 Unsupported protocol. This build of curl has no support for this protocol.
1608 .IP 2
1609 Failed to initialize.
1610 .IP 3
1611 URL malformed. The syntax was not correct.
1612 .IP 5
1613 Couldn't resolve proxy. The given proxy host could not be resolved.
1614 .IP 6
1615 Couldn't resolve host. The given remote host was not resolved.
1616 .IP 7
1617 Failed to connect to host.
1618 .IP 8
1619 FTP weird server reply. The server sent data curl couldn't parse.
1620 .IP 9
1621 FTP access denied. The server denied login or denied access to the particular
1622 resource or directory you wanted to reach. Most often you tried to change to a
1623 directory that doesn't exist on the server.
1624 .IP 11
1625 FTP weird PASS reply. Curl couldn't parse the reply sent to the PASS request.
1626 .IP 13
1627 FTP weird PASV reply, Curl couldn't parse the reply sent to the PASV request.
1628 .IP 14
1629 FTP weird 227 format. Curl couldn't parse the 227-line the server sent.
1630 .IP 15
1631 FTP can't get host. Couldn't resolve the host IP we got in the 227-line.
1632 .IP 17
1633 FTP couldn't set binary. Couldn't change transfer method to binary.
1634 .IP 18
1635 Partial file. Only a part of the file was transferred.
1636 .IP 19
1637 FTP couldn't download/access the given file, the RETR (or similar) command
1638 failed.
1639 .IP 21
1640 FTP quote error. A quote command returned error from the server.
1641 .IP 22
1642 HTTP page not retrieved. The requested url was not found or returned another
1643 error with the HTTP error code being 400 or above. This return code only
1644 appears if \fI-f/--fail\fP is used.
1645 .IP 23
1646 Write error. Curl couldn't write data to a local filesystem or similar.
1647 .IP 25
1648 FTP couldn't STOR file. The server denied the STOR operation, used for FTP
1649 uploading.
1650 .IP 26
1651 Read error. Various reading problems.
1652 .IP 27
1653 Out of memory. A memory allocation request failed.
1654 .IP 28
1655 Operation timeout. The specified time-out period was reached according to the
1656 conditions.
1657 .IP 30
1658 FTP PORT failed. The PORT command failed. Not all FTP servers support the PORT
1659 command, try doing a transfer using PASV instead!
1660 .IP 31
1661 FTP couldn't use REST. The REST command failed. This command is used for
1662 resumed FTP transfers.
1663 .IP 33
1664 HTTP range error. The range "command" didn't work.
1665 .IP 34
1666 HTTP post error. Internal post-request generation error.
1667 .IP 35
1668 SSL connect error. The SSL handshaking failed.
1669 .IP 36
1670 FTP bad download resume. Couldn't continue an earlier aborted download.
1671 .IP 37
1672 FILE couldn't read file. Failed to open the file. Permissions?
1673 .IP 38
1674 LDAP cannot bind. LDAP bind operation failed.
1675 .IP 39
1676 LDAP search failed.
1677 .IP 41
1678 Function not found. A required LDAP function was not found.
1679 .IP 42
1680 Aborted by callback. An application told curl to abort the operation.
1681 .IP 43
1682 Internal error. A function was called with a bad parameter.
1683 .IP 45
1684 Interface error. A specified outgoing interface could not be used.
1685 .IP 47
1686 Too many redirects. When following redirects, curl hit the maximum amount.
1687 .IP 48
1688 Unknown TELNET option specified.
1689 .IP 49
1690 Malformed telnet option.
1691 .IP 51
1692 The peer's SSL certificate or SSH MD5 fingerprint was not ok.
1693 .IP 52
1694 The server didn't reply anything, which here is considered an error.
1695 .IP 53
1696 SSL crypto engine not found.
1697 .IP 54
1698 Cannot set SSL crypto engine as default.
1699 .IP 55
1700 Failed sending network data.
1701 .IP 56
1702 Failure in receiving network data.
1703 .IP 58
1704 Problem with the local certificate.
1705 .IP 59
1706 Couldn't use specified SSL cipher.
1707 .IP 60
1708 Peer certificate cannot be authenticated with known CA certificates.
1709 .IP 61
1710 Unrecognized transfer encoding.
1711 .IP 62
1712 Invalid LDAP URL.
1713 .IP 63
1714 Maximum file size exceeded.
1715 .IP 64
1716 Requested FTP SSL level failed.
1717 .IP 65
1718 Sending the data requires a rewind that failed.
1719 .IP 66
1720 Failed to initialise SSL Engine.
1721 .IP 67
1722 The user name, password, or similar was not accepted and curl failed to log in.
1723 .IP 68
1724 File not found on TFTP server.
1725 .IP 69
1726 Permission problem on TFTP server.
1727 .IP 70
1728 Out of disk space on TFTP server.
1729 .IP 71
1730 Illegal TFTP operation.
1731 .IP 72
1732 Unknown TFTP transfer ID.
1733 .IP 73
1734 File already exists (TFTP).
1735 .IP 74
1736 No such user (TFTP).
1737 .IP 75
1738 Character conversion failed.
1739 .IP 76
1740 Character conversion functions required.
1741 .IP 77
1742 Problem with reading the SSL CA cert (path? access rights?).
1743 .IP 78
1744 The resource referenced in the URL does not exist.
1745 .IP 79
1746 An unspecified error occurred during the SSH session.
1747 .IP 80
1748 Failed to shut down the SSL connection.
1749 .IP 82
1750 Could not load CRL file, missing or wrong format (added in 7.19.0).
1751 .IP 83
1752 Issuer check failed (added in 7.19.0).
1753 .IP XX
1754 More error codes will appear here in future releases. The existing ones
1755 are meant to never change.
1756 .SH AUTHORS / CONTRIBUTORS
1757 Daniel Stenberg is the main author, but the whole list of contributors is
1758 found in the separate THANKS file.
1759 .SH WWW
1760 http://curl.haxx.se
1761 .SH FTP
1762 ftp://ftp.sunet.se/pub/www/utilities/curl/
1763 .SH "SEE ALSO"
1764 .BR ftp (1),
1765 .BR wget (1)