curl.1 47 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149
  1. .\" You can view this file with:
  2. .\" nroff -man curl.1
  3. .\" Written by Daniel Stenberg
  4. .\"
  5. .TH curl 1 "5 Mar 2004" "Curl 7.11.1" "Curl Manual"
  6. .SH NAME
  7. curl \- transfer a URL
  8. .SH SYNOPSIS
  9. .B curl [options]
  10. .I [URL...]
  11. .SH DESCRIPTION
  12. .B curl
  13. is a tool to transfer data from or to a server, using one of the supported
  14. protocols (HTTP, HTTPS, FTP, FTPS, GOPHER, DICT, TELNET, LDAP or FILE). The
  15. command is designed to work without user interaction.
  16. curl offers a busload of useful tricks like proxy support, user
  17. authentication, ftp upload, HTTP post, SSL (https:) connections, cookies, file
  18. transfer resume and more. As you will see below, the amount of features will
  19. make your head spin!
  20. curl is powered by libcurl for all transfer-related features. See
  21. .BR libcurl (3)
  22. for details.
  23. .SH URL
  24. The URL syntax is protocol dependent. You'll find a detailed description in
  25. RFC 2396.
  26. You can specify multiple URLs or parts of URLs by writing part sets within
  27. braces as in:
  28. http://site.{one,two,three}.com
  29. or you can get sequences of alphanumeric series by using [] as in:
  30. ftp://ftp.numericals.com/file[1-100].txt
  31. ftp://ftp.numericals.com/file[001-100].txt (with leading zeros)
  32. ftp://ftp.letters.com/file[a-z].txt
  33. No nesting of the sequences is supported at the moment:
  34. http://www.any.org/archive[1996-1999]/volume[1-4]part{a,b,c,index}.html
  35. You can specify any amount of URLs on the command line. They will be fetched
  36. in a sequential manner in the specified order.
  37. Curl will attempt to re-use connections for multiple file transfers, so that
  38. getting many files from the same server will not do multiple connects /
  39. handshakes. This improves speed. Of course this is only done on files
  40. specified on a single command line and cannot be used between separate curl
  41. invokes.
  42. .SH OPTIONS
  43. .IP "-a/--append"
  44. (FTP) When used in an FTP upload, this will tell curl to append to the target
  45. file instead of overwriting it. If the file doesn't exist, it will be created.
  46. If this option is used twice, the second one will disable append mode again.
  47. .IP "-A/--user-agent <agent string>"
  48. (HTTP) Specify the User-Agent string to send to the HTTP server. Some badly
  49. done CGIs fail if its not set to "Mozilla/4.0". To encode blanks in the
  50. string, surround the string with single quote marks. This can also be set
  51. with the \fI-H/--header\fP option of course.
  52. If this option is set more than once, the last one will be the one that's
  53. used.
  54. .IP "--anyauth"
  55. (HTTP) Tells curl to figure out authentication method by itself, and use the
  56. most secure one the remote site claims it supports. This is done by first
  57. doing a request and checking the response-headers, thus inducing an extra
  58. network round-trip. This is used instead of setting a specific authentication
  59. method, which you can do with \fI--basic\fP, \fI--digest\fP, \fI--ntlm\fP, and
  60. \fI--negotiate\fP. (Added in 7.10.6)
  61. If this option is used several times, the following occurrences make no
  62. difference.
  63. .IP "-b/--cookie <name=data>"
  64. (HTTP)
  65. Pass the data to the HTTP server as a cookie. It is supposedly the
  66. data previously received from the server in a "Set-Cookie:" line.
  67. The data should be in the format "NAME1=VALUE1; NAME2=VALUE2".
  68. If no '=' letter is used in the line, it is treated as a filename to use to
  69. read previously stored cookie lines from, which should be used in this session
  70. if they match. Using this method also activates the "cookie parser" which will
  71. make curl record incoming cookies too, which may be handy if you're using this
  72. in combination with the \fI-L/--location\fP option. The file format of the
  73. file to read cookies from should be plain HTTP headers or the Netscape/Mozilla
  74. cookie file format.
  75. \fBNOTE\fP that the file specified with \fI-b/--cookie\fP is only used as
  76. input. No cookies will be stored in the file. To store cookies, use the
  77. \fI-c/--cookie-jar\fP option or you could even save the HTTP headers to a file
  78. using \fI-D/--dump-header\fP!
  79. If this option is set more than once, the last one will be the one that's
  80. used.
  81. .IP "-B/--use-ascii"
  82. Use ASCII transfer when getting an FTP file or LDAP info. For FTP, this can
  83. also be enforced by using an URL that ends with ";type=A". This option causes
  84. data sent to stdout to be in text mode for win32 systems.
  85. If this option is used twice, the second one will disable ASCII usage.
  86. .IP "--basic"
  87. (HTTP) Tells curl to use HTTP Basic authentication. This is the default and
  88. this option is usually pointless, unless you use it to override a previously
  89. set option that sets a different authentication method (such as \fI--ntlm\fP,
  90. \fI--digest\fP and \fI--negotiate\fP). (Added in 7.10.6)
  91. If this option is used several times, the following occurrences make no
  92. difference.
  93. .IP "--ciphers <list of ciphers>"
  94. (SSL) Specifies which ciphers to use in the connection. The list of ciphers
  95. must be using valid ciphers. Read up on SSL cipher list details on this URL:
  96. \fIhttp://www.openssl.org/docs/apps/ciphers.html\fP
  97. If this option is used several times, the last one will override the others.
  98. .IP "--compressed"
  99. (HTTP) Request a compressed response using one of the algorithms libcurl
  100. supports, and return the uncompressed document. If this option is used and
  101. the server sends an unsupported encoding, Curl will report an error.
  102. If this option is used several times, each occurrence will toggle it on/off.
  103. .IP "--connect-timeout <seconds>"
  104. Maximum time in seconds that you allow the connection to the server to take.
  105. This only limits the connection phase, once curl has connected this option is
  106. of no more use. See also the \fI--max-time\fP option.
  107. If this option is used several times, the last one will be used.
  108. .IP "-c/--cookie-jar <file name>"
  109. Specify to which file you want curl to write all cookies after a completed
  110. operation. Curl writes all cookies previously read from a specified file as
  111. well as all cookies received from remote server(s). If no cookies are known,
  112. no file will be written. The file will be written using the Netscape cookie
  113. file format. If you set the file name to a single dash, "-", the cookies will
  114. be written to stdout.
  115. .B NOTE
  116. If the cookie jar can't be created or written to, the whole curl operation
  117. won't fail or even report an error clearly. Using -v will get a warning
  118. displayed, but that is the only visible feedback you get about this possibly
  119. lethal situation.
  120. If this option is used several times, the last specfied file name will be
  121. used.
  122. .IP "-C/--continue-at <offset>"
  123. Continue/Resume a previous file transfer at the given offset. The given offset
  124. is the exact number of bytes that will be skipped counted from the beginning
  125. of the source file before it is transfered to the destination. If used with
  126. uploads, the ftp server command SIZE will not be used by curl.
  127. Use "-C -" to tell curl to automatically find out where/how to resume the
  128. transfer. It then uses the given output/input files to figure that out.
  129. If this option is used several times, the last one will be used.
  130. .IP "--create-dirs"
  131. When used in conjunction with the -o option, curl will create the necessary
  132. local directory hierarchy as needed.
  133. .IP "--crlf"
  134. (FTP) Convert LF to CRLF in upload. Useful for MVS (OS/390).
  135. If this option is used twice, the second will again disable crlf converting.
  136. .IP "-d/--data <data>"
  137. (HTTP) Sends the specified data in a POST request to the HTTP server, in a way
  138. that can emulate as if a user has filled in a HTML form and pressed the submit
  139. button. Note that the data is sent exactly as specified with no extra
  140. processing (with all newlines cut off). The data is expected to be
  141. \&"url-encoded". This will cause curl to pass the data to the server using the
  142. content-type application/x-www-form-urlencoded. Compare to \fI-F/--form\fP. If
  143. this option is used more than once on the same command line, the data pieces
  144. specified will be merged together with a separating &-letter. Thus, using '-d
  145. name=daniel -d skill=lousy' would generate a post chunk that looks like
  146. \&'name=daniel&skill=lousy'.
  147. If you start the data with the letter @, the rest should be a file name to
  148. read the data from, or - if you want curl to read the data from stdin. The
  149. contents of the file must already be url-encoded. Multiple files can also be
  150. specified. Posting data from a file named 'foobar' would thus be done with
  151. \fI--data\fP @foobar".
  152. To post data purely binary, you should instead use the \fI--data-binary\fP
  153. option.
  154. \fI-d/--data\fP is the same as \fI--data-ascii\fP.
  155. If this option is used several times, the ones following the first will
  156. append data.
  157. .IP "--data-ascii <data>"
  158. (HTTP) This is an alias for the \fI-d/--data\fP option.
  159. If this option is used several times, the ones following the first will
  160. append data.
  161. .IP "--data-binary <data>"
  162. (HTTP) This posts data in a similar manner as \fI--data-ascii\fP does,
  163. although when using this option the entire context of the posted data is kept
  164. as-is. If you want to post a binary file without the strip-newlines feature of
  165. the \fI--data-ascii\fP option, this is for you.
  166. If this option is used several times, the ones following the first will
  167. append data.
  168. .IP "--digest"
  169. (HTTP) Enables HTTP Digest authentication. This is a authentication that
  170. prevents the password from being sent over the wire in clear text. Use this in
  171. combination with the normal \fI-u/--user\fP option to set user name and
  172. password. See also \fI--ntlm\fP, \fI--negotiate\fP and \fI--anyauth\fP for
  173. related options. (Added in curl 7.10.6)
  174. If this option is used several times, the following occurrences make no
  175. difference.
  176. .IP "--disable-eprt"
  177. (FTP) Tell curl to disable the use of the EPRT and LPRT commands when doing
  178. active FTP transfers. Curl will normally always first attempt to use EPRT,
  179. then LPRT before using PORT, but with this option, it will use PORT right
  180. away. EPRT and LPRT are extensions to the original FTP protocol, may not work
  181. on all servers but enable more functionality in a better way than the
  182. traditional PORT command. (Aded in 7.10.5)
  183. If this option is used several times, each occurrence will toggle this on/off.
  184. .IP "--disable-epsv"
  185. (FTP) Tell curl to disable the use of the EPSV command when doing passive FTP
  186. transfers. Curl will normally always first attempt to use EPSV before PASV,
  187. but with this option, it will not try using EPSV.
  188. If this option is used several times, each occurrence will toggle this on/off.
  189. .IP "-D/--dump-header <file>"
  190. Write the protocol headers to the specified file.
  191. This option is handy to use when you want to store the headers that a HTTP
  192. site sends to you. Cookies from the headers could then be read in a second
  193. curl invoke by using the \fI-b/--cookie\fP option! The \fI-c/--cookie-jar\fP
  194. option is however a better way to store cookies.
  195. When used on FTP, the ftp server response lines are considered being "headers"
  196. and thus are saved there.
  197. If this option is used several times, the last one will be used.
  198. .IP "-e/--referer <URL>"
  199. (HTTP) Sends the "Referer Page" information to the HTTP server. This can also
  200. be set with the \fI-H/--header\fP flag of course. When used with
  201. \fI-L/--location\fP you can append ";auto" to the referer URL to make curl
  202. automatically set the previous URL when it follows a Location: header. The
  203. ";auto" string can be used alone, even if you don't set an initial referer.
  204. If this option is used several times, the last one will be used.
  205. .IP "--environment"
  206. (RISC OS ONLY) Sets a range of environment variables, using the names the -w
  207. option supports, to easier allow extraction of useful information after having
  208. run curl.
  209. If this option is used several times, each occurrence will toggle this on/off.
  210. .IP "--egd-file <file>"
  211. (HTTPS) Specify the path name to the Entropy Gathering Daemon socket. The
  212. socket is used to seed the random engine for SSL connections. See also the
  213. \fI--random-file\fP option.
  214. .IP "-E/--cert <certificate[:password]>"
  215. (HTTPS)
  216. Tells curl to use the specified certificate file when getting a file
  217. with HTTPS. The certificate must be in PEM format.
  218. If the optional password isn't specified, it will be queried for on
  219. the terminal. Note that this certificate is the private key and the private
  220. certificate concatenated!
  221. If this option is used several times, the last one will be used.
  222. .IP "--cert-type <type>"
  223. (SSL) Tells curl what certificate type the provided certificate is in. PEM,
  224. DER and ENG are recognized types.
  225. If this option is used several times, the last one will be used.
  226. .IP "--cacert <CA certificate>"
  227. (HTTPS) Tells curl to use the specified certificate file to verify the
  228. peer. The file may contain multiple CA certificates. The certificate(s) must
  229. be in PEM format.
  230. curl recognizes the environment variable named 'CURL_CA_BUNDLE' if that is
  231. set, and uses the given path as a path to a CA cert bundle. This option
  232. overrides that variable.
  233. The windows version of curl will automatically look for a CA certs file named
  234. \'curl-ca-bundle.crt\', either in the same directory as curl.exe, or in the
  235. Current Working Directory, or in any folder along your PATH.
  236. If this option is used several times, the last one will be used.
  237. .IP "--capath <CA certificate directory>"
  238. (HTTPS) Tells curl to use the specified certificate directory to verify the
  239. peer. The certificates must be in PEM format, and the directory must have been
  240. processed using the c_rehash utility supplied with openssl. Using
  241. \fI--capath\fP can allow curl to make https connections much more efficiently
  242. than using \fI--cacert\fP if the \fI--cacert\fP file contains many CA
  243. certificates.
  244. If this option is used several times, the last one will be used.
  245. .IP "-f/--fail"
  246. (HTTP) Fail silently (no output at all) on server errors. This is mostly done
  247. like this to better enable scripts etc to better deal with failed attempts. In
  248. normal cases when a HTTP server fails to deliver a document, it returns a HTML
  249. document stating so (which often also describes why and more). This flag will
  250. prevent curl from outputting that and fail silently instead.
  251. If this option is used twice, the second will again disable silent failure.
  252. .IP "--ftp-create-dirs"
  253. (FTP) When an FTP URL/operation uses a path that doesn't currently exist on
  254. the server, the standard behavior of curl is to fail. Using this option, curl
  255. will instead attempt to create missing directories. (Added in 7.10.7)
  256. If this option is used twice, the second will again disable silent failure.
  257. .IP "--ftp-pasv"
  258. (FTP) Use PASV when transfering. PASV is the internal default behavior, but
  259. using this option can be used to override a previos --ftp-port option. (Added
  260. in 7.11.0)
  261. If this option is used twice, the second will again disable silent failure.
  262. .IP "--ftp-ssl"
  263. (FTP) Make the FTP connection switch to use SSL/TLS. (Added in 7.11.0)
  264. If this option is used twice, the second will again disable silent failure.
  265. .IP "-F/--form <name=content>"
  266. (HTTP) This lets curl emulate a filled in form in which a user has pressed the
  267. submit button. This causes curl to POST data using the content-type
  268. multipart/form-data according to RFC1867. This enables uploading of binary
  269. files etc. To force the 'content' part to be be a file, prefix the file name
  270. with an @ sign. To just get the content part from a file, prefix the file name
  271. with the letter <. The difference between @ and < is then that @ makes a file
  272. get attached in the post as a file upload, while the < makes a text field and
  273. just get the contents for that text field from a file.
  274. Example, to send your password file to the server, where
  275. \&'password' is the name of the form-field to which /etc/passwd will be the
  276. input:
  277. \fBcurl\fP -F password=@/etc/passwd www.mypasswords.com
  278. To read the file's content from stdin insted of a file, use - where the file
  279. name should've been. This goes for both @ and < constructs.
  280. You can also tell curl what Content-Type to use for the file upload part, by
  281. using 'type=', in a manner similar to:
  282. \fBcurl\fP -F "web=@index.html;type=text/html" url.com
  283. See further examples and details in the MANUAL.
  284. This option can be used multiple times.
  285. .IP "-g/--globoff"
  286. This option switches off the "URL globbing parser". When you set this option,
  287. you can specify URLs that contain the letters {}[] without having them being
  288. interpreted by curl itself. Note that these letters are not normal legal URL
  289. contents but they should be encoded according to the URI standard.
  290. .IP "-G/--get"
  291. When used, this option will make all data specified with \fI-d/--data\fP or
  292. \fI--data-binary\fP to be used in a HTTP GET request instead of the POST
  293. request that otherwise would be used. The data will be appended to the URL
  294. with a '?' separator.
  295. If used in combination with -I, the POST data will instead be appended to the
  296. URL with a HEAD request.
  297. If used multiple times, nothing special happens.
  298. .IP "-h/--help"
  299. Usage help.
  300. .IP "-H/--header <header>"
  301. (HTTP) Extra header to use when getting a web page. You may specify any number
  302. of extra headers. Note that if you should add a custom header that has the
  303. same name as one of the internal ones curl would use, your externally set
  304. header will be used instead of the internal one. This allows you to make even
  305. trickier stuff than curl would normally do. You should not replace internally
  306. set headers without knowing perfectly well what you're doing. Replacing an
  307. internal header with one without content on the right side of the colon will
  308. prevent that header from appearing.
  309. See also the \fI-A/--user-agent\fP and \fI-e/--referer\fP options.
  310. This option can be used multiple times to add/replace/remove multiple headers.
  311. .IP "-i/--include"
  312. (HTTP)
  313. Include the HTTP-header in the output. The HTTP-header includes things
  314. like server-name, date of the document, HTTP-version and more...
  315. If this option is used twice, the second will again disable header include.
  316. .IP "--interface <name>"
  317. Perform an operation using a specified interface. You can enter interface
  318. name, IP address or host name. An example could look like:
  319. curl --interface eth0:1 http://www.netscape.com/
  320. If this option is used several times, the last one will be used.
  321. .IP "-I/--head"
  322. (HTTP/FTP/FILE)
  323. Fetch the HTTP-header only! HTTP-servers feature the command HEAD
  324. which this uses to get nothing but the header of a document. When used
  325. on a FTP or FILE file, curl displays the file size and last modification
  326. time only.
  327. If this option is used twice, the second will again disable header only.
  328. .IP "-j/--junk-session-cookies"
  329. (HTTP) When curl is told to read cookies from a given file, this option will
  330. make it discard all "session cookies". This will basicly have the same effect
  331. as if a new session is started. Typical browsers always discard session
  332. cookies when they're closed down. (Added in 7.9.7)
  333. If this option is used several times, each occurrence will toggle this on/off.
  334. .IP "-k/--insecure"
  335. (SSL) This option explicitly allows curl to perform "insecure" SSL connections
  336. and transfers. Starting with curl 7.10, all SSL connections will be attempted
  337. to be made secure by using the CA certificate bundle installed by
  338. default. This makes all connections considered "insecure" to fail unless
  339. \fI-k/--insecure\fP is used.
  340. If this option is used twice, the second time will again disable it.
  341. .IP "--key <key>"
  342. (SSL) Private key file name. Allows you to provide your private key in this
  343. separate file.
  344. If this option is used several times, the last one will be used.
  345. .IP "--key-type <type>"
  346. (SSL) Private key file type. Specify which type your \fI--key\fP provided
  347. private key is. DER, PEM and ENG are supported.
  348. If this option is used several times, the last one will be used.
  349. .IP "--krb4 <level>"
  350. (FTP) Enable kerberos4 authentication and use. The level must be entered and
  351. should be one of 'clear', 'safe', 'confidential' or 'private'. Should you use
  352. a level that is not one of these, 'private' will instead be used.
  353. This option requiures that the library was built with kerberos4 support. This
  354. is not very common. Use \fI-V/--version\fP to see if your curl supports it.
  355. If this option is used several times, the last one will be used.
  356. .IP "-K/--config <config file>"
  357. Specify which config file to read curl arguments from. The config file is a
  358. text file in which command line arguments can be written which then will be
  359. used as if they were written on the actual command line. Options and their
  360. parameters must be specified on the same config file line. If the parameter is
  361. to contain white spaces, the parameter must be inclosed within quotes. If the
  362. first column of a config line is a '#' character, the rest of the line will be
  363. treated as a comment.
  364. Specify the filename as '-' to make curl read the file from stdin.
  365. Note that to be able to specify a URL in the config file, you need to specify
  366. it using the \fI--url\fP option, and not by simply writing the URL on its own
  367. line. So, it could look similar to this:
  368. url = "http://curl.haxx.se/docs/"
  369. This option can be used multiple times.
  370. .IP "--limit-rate <speed>"
  371. Specify the maximum transfer rate you want curl to use. This feature is useful
  372. if you have a limited pipe and you'd like your transfer not use your entire
  373. bandwidth.
  374. The given speed is measured in bytes/second, unless a suffix is appended.
  375. Appending 'k' or 'K' will count the number as kilobytes, 'm' or M' makes it
  376. megabytes while 'g' or 'G' makes it gigabytes. Examples: 200K, 3m and 1G.
  377. If you are also using the \fI-Y/--speed-limit\fP option, that option will take
  378. precedence and might cripple the rate-limiting slightly, to help keeping the
  379. speed-limit logic working.
  380. This option was introduced in curl 7.10.
  381. If this option is used several times, the last one will be used.
  382. .IP "-l/--list-only"
  383. (FTP)
  384. When listing an FTP directory, this switch forces a name-only view.
  385. Especially useful if you want to machine-parse the contents of an FTP
  386. directory since the normal directory view doesn't use a standard look
  387. or format.
  388. This option causes an FTP NLST command to be sent. Some FTP servers
  389. list only files in their response to NLST; they do not include
  390. subdirectories and symbolic links.
  391. If this option is used twice, the second will again disable list only.
  392. .IP "-L/--location"
  393. (HTTP/HTTPS) If the server reports that the requested page has a different
  394. location (indicated with the header line Location:) this flag will let curl
  395. attempt to reattempt the get on the new place. If used together with
  396. \fI-i/--include\fP or \fI-I/--head\fP, headers from all requested pages will
  397. be shown. If authentication is used, curl will only send its credentials to
  398. the initial host, so if a redirect takes curl to a different host, it won't
  399. intercept the user+password. See also \fI--location-trusted\fP on how to
  400. change this.
  401. If this option is used twice, the second will again disable location following.
  402. .IP "--location-trusted"
  403. (HTTP/HTTPS) Like \fI-L/--location\fP, but will allow sending the name +
  404. password to all hosts that the site may redirect to. This may or may not
  405. introduce a security breach if the site redirects you do a site to which
  406. you'll send your authentication info (which is plaintext in the case of HTTP
  407. Basic authentication).
  408. If this option is used twice, the second will again disable location following.
  409. .IP "--max-filesize <bytes>"
  410. Specify the maximum size (in bytes) of a file to download. If the file
  411. requested is larger than this value, the transfer will not start and curl will
  412. return with exit code 63.
  413. NOTE: The file size is not always known prior to download, and for such files
  414. this option has no effect even if the file transfer ends up being larger than
  415. this given limit. This concerns both FTP and HTTP transfers.
  416. .IP "-m/--max-time <seconds>"
  417. Maximum time in seconds that you allow the whole operation to take. This is
  418. useful for preventing your batch jobs from hanging for hours due to slow
  419. networks or links going down. This doesn't work fully in win32 systems. See
  420. also the \fI--connect-timeout\fP option.
  421. If this option is used several times, the last one will be used.
  422. .IP "-M/--manual"
  423. Manual. Display the huge help text.
  424. .IP "-n/--netrc"
  425. Makes curl scan the \fI.netrc\fP file in the user's home directory for login
  426. name and password. This is typically used for ftp on unix. If used with http,
  427. curl will enable user authentication. See
  428. .BR netrc(4)
  429. or
  430. .BR ftp(1)
  431. for details on the file format. Curl will not complain if that file
  432. hasn't the right permissions (it should not be world nor group
  433. readable). The environment variable "HOME" is used to find the home
  434. directory.
  435. A quick and very simple example of how to setup a \fI.netrc\fP to allow curl
  436. to ftp to the machine host.domain.com with user name \&'myself' and password
  437. 'secret' should look similar to:
  438. .B "machine host.domain.com login myself password secret"
  439. If this option is used twice, the second will again disable netrc usage.
  440. .IP "--netrc-optional"
  441. Very similar to \fI--netrc\fP, but this option makes the .netrc usage
  442. \fBoptional\fP and not mandatory as the \fI--netrc\fP does.
  443. .IP "--negotiate"
  444. (HTTP) Enables GSS-Negotiate authentication. The GSS-Negotiate method was
  445. designed by Microsoft and is used in their web aplications. It is primarily
  446. meant as a support for Kerberos5 authentication but may be also used along
  447. with another authentication methods. For more information see IETF draft
  448. draft-brezak-spnego-http-04.txt. (Added in 7.10.6)
  449. This option requiures that the library was built with GSSAPI support. This is
  450. not very common. Use \fI-V/--version\fP to see if your version supports
  451. GSS-Negotiate.
  452. If this option is used several times, the following occurrences make no
  453. difference.
  454. .IP "-N/--no-buffer"
  455. Disables the buffering of the output stream. In normal work situations, curl
  456. will use a standard buffered output stream that will have the effect that it
  457. will output the data in chunks, not necessarily exactly when the data arrives.
  458. Using this option will disable that buffering.
  459. If this option is used twice, the second will again switch on buffering.
  460. .IP "--ntlm"
  461. (HTTP) Enables NTLM authentication. The NTLM authentication method was
  462. designed by Microsoft and is used by IIS web servers. It is a proprietary
  463. protocol, reversed engineered by clever people and implemented in curl based
  464. on their efforts. This kind of behavior should not be endorsed, you should
  465. encourage everyone who uses NTLM to switch to a public and documented
  466. authentication method instead. Such as Digest. (Added in 7.10.6)
  467. If you want to enable NTLM for your proxy authentication, then use
  468. \fI--proxy-ntlm\fP.
  469. This option requiures that the library was built with SSL support. Use
  470. \fI-V/--version\fP to see if your curl supports NTLM.
  471. If this option is used several times, the following occurrences make no
  472. difference.
  473. .IP "-o/--output <file>"
  474. Write output to <file> instead of stdout. If you are using {} or [] to fetch
  475. multiple documents, you can use '#' followed by a number in the <file>
  476. specifier. That variable will be replaced with the current string for the URL
  477. being fetched. Like in:
  478. curl http://{one,two}.site.com -o "file_#1.txt"
  479. or use several variables like:
  480. curl http://{site,host}.host[1-5].com -o "#1_#2"
  481. You may use this option as many times as you have number of URLs.
  482. See also the \fI--create-dirs\fP option to create the local directories
  483. dynamically.
  484. .IP "-O/--remote-name"
  485. Write output to a local file named like the remote file we get. (Only the file
  486. part of the remote file is used, the path is cut off.)
  487. You may use this option as many times as you have number of URLs.
  488. .IP "--pass <phrase>"
  489. (SSL) Pass phrase for the private key
  490. If this option is used several times, the last one will be used.
  491. .IP "--proxy-ntlm"
  492. Tells curl to use NTLM authentication when communicating with the given
  493. proxy. Use \fI--ntlm\fP for enabling NTLM with a remote host.
  494. If this option is used twice, the second will again disable proxy NTLM.
  495. .IP "-p/--proxytunnel"
  496. When an HTTP proxy is used (\fI-x/--proxy\fP), this option will cause non-HTTP
  497. protocols to attempt to tunnel through the proxy instead of merely using it to
  498. do HTTP-like operations. The tunnel approach is made with the HTTP proxy
  499. CONNECT request and requires that the proxy allows direct connect to the
  500. remote port number curl wants to tunnel through to.
  501. If this option is used twice, the second will again disable proxy tunnel.
  502. .IP "-P/--ftp-port <address>"
  503. (FTP) Reverses the initiator/listener roles when connecting with ftp. This
  504. switch makes Curl use the PORT command instead of PASV. In practice, PORT
  505. tells the server to connect to the client's specified address and port, while
  506. PASV asks the server for an ip address and port to connect to. <address>
  507. should be one of:
  508. .RS
  509. .IP interface
  510. i.e "eth0" to specify which interface's IP address you want to use (Unix only)
  511. .IP "IP address"
  512. i.e "192.168.10.1" to specify exact IP number
  513. .IP "host name"
  514. i.e "my.host.domain" to specify machine
  515. .IP "-"
  516. (any single-letter string) to make it pick the machine's default
  517. .RE
  518. If this option is used several times, the last one will be used. Disable the
  519. use of PORT with \fI--ftp-pasv\fP. Disable the attempt to use the EPRT command
  520. instead of PORT by using \fI--disable-eprt\fP. EPRT is really PORT++.
  521. .IP "-q"
  522. If used as the first parameter on the command line, the \fI$HOME/.curlrc\fP
  523. file will not be read and used as a config file.
  524. .IP "-Q/--quote <comand>"
  525. (FTP) Send an arbitrary command to the remote FTP server, by using the QUOTE
  526. command of the server. Not all servers support this command, and the set of
  527. QUOTE commands are server specific! Quote commands are sent BEFORE the
  528. transfer is taking place. To make commands take place after a successful
  529. transfer, prefix them with a dash '-'. You may specify any amount of commands
  530. to be run before and after the transfer. If the server returns failure for one
  531. of the commands, the entire operation will be aborted.
  532. This option can be used multiple times.
  533. .IP "--random-file <file>"
  534. (HTTPS) Specify the path name to file containing what will be considered as
  535. random data. The data is used to seed the random engine for SSL connections.
  536. See also the \fI--egd-file\fP option.
  537. .IP "-r/--range <range>"
  538. (HTTP/FTP)
  539. Retrieve a byte range (i.e a partial document) from a HTTP/1.1 or FTP
  540. server. Ranges can be specified in a number of ways.
  541. .RS
  542. .TP 10
  543. .B 0-499
  544. specifies the first 500 bytes
  545. .TP
  546. .B 500-999
  547. specifies the second 500 bytes
  548. .TP
  549. .B -500
  550. specifies the last 500 bytes
  551. .TP
  552. .B 9500
  553. specifies the bytes from offset 9500 and forward
  554. .TP
  555. .B 0-0,-1
  556. specifies the first and last byte only(*)(H)
  557. .TP
  558. .B 500-700,600-799
  559. specifies 300 bytes from offset 500(H)
  560. .TP
  561. .B 100-199,500-599
  562. specifies two separate 100 bytes ranges(*)(H)
  563. .RE
  564. (*) = NOTE that this will cause the server to reply with a multipart
  565. response!
  566. You should also be aware that many HTTP/1.1 servers do not have this feature
  567. enabled, so that when you attempt to get a range, you'll instead get the whole
  568. document.
  569. FTP range downloads only support the simple syntax 'start-stop' (optionally
  570. with one of the numbers omitted). It depends on the non-RFC command SIZE.
  571. If this option is used several times, the last one will be used.
  572. .IP "-R/--remote-time"
  573. When used, this will make libcurl attempt to figure out the timestamp of the
  574. remote file, and if that is available make the local file get that same
  575. timestamp.
  576. If this option is used twice, the second time disables this again.
  577. .IP "-s/--silent"
  578. Silent mode. Don't show progress meter or error messages. Makes
  579. Curl mute.
  580. If this option is used twice, the second will again disable mute.
  581. .IP "-S/--show-error"
  582. When used with -s it makes curl show error message if it fails.
  583. If this option is used twice, the second will again disable show error.
  584. .IP "--socks <host[:port]>"
  585. Use the specified SOCKS5 proxy. If the port number is not specified, it is
  586. assumed at port 1080. (Option added in 7.11.1)
  587. This option overrides any previous use of \fI-x/--proxy\fP, as they are
  588. mutually exclusive.
  589. If this option is used several times, the last one will be used.
  590. .IP "--stderr <file>"
  591. Redirect all writes to stderr to the specified file instead. If the file name
  592. is a plain '-', it is instead written to stdout. This option has no point when
  593. you're using a shell with decent redirecting capabilities.
  594. If this option is used several times, the last one will be used.
  595. .IP "-t/--telnet-option <OPT=val>"
  596. Pass options to the telnet protocol. Supported options are:
  597. TTYPE=<term> Sets the terminal type.
  598. XDISPLOC=<X display> Sets the X display location.
  599. NEW_ENV=<var,val> Sets an environment variable.
  600. .IP "-T/--upload-file <file>"
  601. This transfers the specified local file to the remote URL. If there is no file
  602. part in the specified URL, Curl will append the local file name. NOTE that you
  603. must use a trailing / on the last directory to really prove to Curl that there
  604. is no file name or curl will think that your last directory name is the remote
  605. file name to use. That will most likely cause the upload operation to fail. If
  606. this is used on a http(s) server, the PUT command will be used.
  607. Use the file name "-" (a single dash) to use stdin instead of a given file.
  608. Before 7.10.8, when this option was used several times, the last one was used.
  609. In curl 7.10.8 and later, you can specify one -T for each URL on the command
  610. line. Each -T + URL pair specifies what to upload and to where. curl also
  611. supports "globbing" of the -T argument, meaning that you can upload multiple
  612. files to a single URL by using the same URL globbing style supported in the
  613. URL, like this:
  614. curl -T "{file1,file2}" http://www.uploadtothissite.com
  615. or even
  616. curl -T "img[1-1000].png" ftp://ftp.picturemania.com/upload/
  617. .IP "--trace <file>"
  618. Enables a full trace dump of all incoming and outgoing data, including
  619. descriptive information, to the given output file. Use "-" as filename to have
  620. the output sent to stdout.
  621. If this option is used several times, the last one will be used. (Added in
  622. 7.9.7)
  623. .IP "--trace-ascii <file>"
  624. Enables a full trace dump of all incoming and outgoing data, including
  625. descriptive information, to the given output file. Use "-" as filename to have
  626. the output sent to stdout.
  627. This is very similar to \fI--trace\fP, but leaves out the hex part and only
  628. shows the ASCII part of the dump. It makes smaller output that might be easier
  629. to read for untrained humans.
  630. If this option is used several times, the last one will be used. (Added in
  631. 7.9.7)
  632. .IP "-u/--user <user:password>"
  633. Specify user and password to use for server authentication.
  634. If this option is used several times, the last one will be used.
  635. .IP "-U/--proxy-user <user:password>"
  636. Specify user and password to use for proxy authentication.
  637. If this option is used several times, the last one will be used.
  638. .IP "--url <URL>"
  639. Specify a URL to fetch. This option is mostly handy when you want to specify
  640. URL(s) in a config file.
  641. This option may be used any number of times. To control where this URL is
  642. written, use the \fI-o/--output\fP or the \fI-O/--remote-name\fP options.
  643. .IP "-v/--verbose"
  644. Makes the fetching more verbose/talkative. Mostly usable for debugging. Lines
  645. starting with '>' means data sent by curl, '<' means data received by curl
  646. that is hidden in normal cases and lines starting with '*' means additional
  647. info provided by curl.
  648. Note that if you want to see HTTP headers in the output, \fI-i/--include\fP
  649. might be option you're looking for.
  650. If you think this option still doesn't give you enough details, consider using
  651. \fI--trace\fP or \fI--trace-ascii\fP instead.
  652. If this option is used twice, the second will again disable verbose.
  653. .IP "-V/--version"
  654. Displays information about curl and the libcurl version it uses.
  655. The first line includes the full version of curl, libcurl and other 3rd party
  656. libraries linked with the executable.
  657. The second line (starts with "Protocols:") shows all protocols that libcurl
  658. reports to support.
  659. The third line (starts with "Features:") shows specific features libcurl
  660. reports to offer. Available features include:
  661. .RS
  662. .IP "IPv6"
  663. You can use IPv6 with this.
  664. .IP "krb4"
  665. Krb4 for ftp is supported.
  666. .IP "SSL"
  667. HTTPS and FTPS are supported.
  668. .IP "libz"
  669. Automatic decompression of compressed files over HTTP is supported.
  670. .IP "NTLM"
  671. NTLM authenticaion is supported.
  672. .IP "GSS-Negotiate"
  673. Negotiate authenticaion is supported.
  674. .IP "Debug"
  675. This curl uses a libcurl built with Debug. This enables more error-tracking
  676. and memory debugging etc. For curl-developers only!
  677. .IP "AsynchDNS"
  678. This curl uses asynchronous name resolves.
  679. .IP "SPNEGO"
  680. SPNEGO Negotiate authenticaion is supported.
  681. .IP "Largefile"
  682. This curl supports transfers of large files, files larger than 2GB.
  683. .RE
  684. .IP "-w/--write-out <format>"
  685. Defines what to display after a completed and successful operation. The format
  686. is a string that may contain plain text mixed with any number of variables. The
  687. string can be specified as "string", to get read from a particular file you
  688. specify it "@filename" and to tell curl to read the format from stdin you
  689. write "@-".
  690. The variables present in the output format will be substituted by the value or
  691. text that curl thinks fit, as described below. All variables are specified
  692. like %{variable_name} and to output a normal % you just write them like
  693. %%. You can output a newline by using \\n, a carriage return with \\r and a tab
  694. space with \\t.
  695. .B NOTE:
  696. The %-letter is a special letter in the win32-environment, where all
  697. occurrences of % must be doubled when using this option.
  698. Available variables are at this point:
  699. .RS
  700. .TP 15
  701. .B url_effective
  702. The URL that was fetched last. This is mostly meaningful if you've told curl
  703. to follow location: headers.
  704. .TP
  705. .B http_code
  706. The numerical code that was found in the last retrieved HTTP(S) page.
  707. .TP
  708. .B time_total
  709. The total time, in seconds, that the full operation lasted. The time will be
  710. displayed with millisecond resolution.
  711. .TP
  712. .B time_namelookup
  713. The time, in seconds, it took from the start until the name resolving was
  714. completed.
  715. .TP
  716. .B time_connect
  717. The time, in seconds, it took from the start until the connect to the remote
  718. host (or proxy) was completed.
  719. .TP
  720. .B time_pretransfer
  721. The time, in seconds, it took from the start until the file transfer is just
  722. about to begin. This includes all pre-transfer commands and negotiations that
  723. are specific to the particular protocol(s) involved.
  724. .TP
  725. .B time_starttransfer
  726. The time, in seconds, it took from the start until the first byte is just about
  727. to be transfered. This includes time_pretransfer and also the time the
  728. server needs to calculate the result.
  729. .TP
  730. .B size_download
  731. The total amount of bytes that were downloaded.
  732. .TP
  733. .B size_upload
  734. The total amount of bytes that were uploaded.
  735. .TP
  736. .B size_header
  737. The total amount of bytes of the downloaded headers.
  738. .TP
  739. .B size_request
  740. The total amount of bytes that were sent in the HTTP request.
  741. .TP
  742. .B speed_download
  743. The average download speed that curl measured for the complete download.
  744. .TP
  745. .B speed_upload
  746. The average upload speed that curl measured for the complete upload.
  747. .TP
  748. .B content_type
  749. The Content-Type of the requested document, if there was any. (Added in 7.9.5)
  750. .RE
  751. If this option is used several times, the last one will be used.
  752. .IP "-x/--proxy <proxyhost[:port]>"
  753. Use specified HTTP proxy. If the port number is not specified, it is assumed
  754. at port 1080.
  755. This option overrides existing environment variables that sets proxy to
  756. use. If there's an environment variable setting a proxy, you can set proxy to
  757. \&"" to override it.
  758. \fBNote\fP that all operations that are performed over a HTTP proxy will
  759. transparantly be converted to HTTP. It means that certain protocol specific
  760. operations might not be available. This is not the case if you can tunnel
  761. through the proxy, as done with the \fI-p/--proxytunnel\fP option.
  762. If this option is used several times, the last one will be used.
  763. .IP "-X/--request <command>"
  764. (HTTP)
  765. Specifies a custom request to use when communicating with the HTTP server.
  766. The specified request will be used instead of the standard GET. Read the
  767. HTTP 1.1 specification for details and explanations.
  768. (FTP)
  769. Specifies a custom FTP command to use instead of LIST when doing file lists
  770. with ftp.
  771. If this option is used several times, the last one will be used.
  772. .IP "-y/--speed-time <time>"
  773. If a download is slower than speed-limit bytes per second during a speed-time
  774. period, the download gets aborted. If speed-time is used, the default
  775. speed-limit will be 1 unless set with -y.
  776. This option controls transfers and thus will not affect slow connects etc. If
  777. this is a concern for you, try the \fI--connect-timeout\fP option.
  778. If this option is used several times, the last one will be used.
  779. .IP "-Y/--speed-limit <speed>"
  780. If a download is slower than this given speed, in bytes per second, for
  781. speed-time seconds it gets aborted. speed-time is set with -Y and is 30 if
  782. not set.
  783. If this option is used several times, the last one will be used.
  784. .IP "-z/--time-cond <date expression>"
  785. (HTTP)
  786. Request to get a file that has been modified later than the given time and
  787. date, or one that has been modified before that time. The date expression can
  788. be all sorts of date strings or if it doesn't match any internal ones, it
  789. tries to get the time from a given file name instead! See the
  790. .BR "GNU date(1)"
  791. or
  792. .BR "curl_getdate(3)"
  793. man pages for date expression details.
  794. Start the date expression with a dash (-) to make it request for a document
  795. that is older than the given date/time, default is a document that is newer
  796. than the specified date/time.
  797. If this option is used several times, the last one will be used.
  798. .IP "-Z/--max-redirs <num>"
  799. Set maximum number of redirection-followings allowed. If \fI-L/--location\fP
  800. is used, this option can be used to prevent curl from following redirections
  801. \&"in absurdum".
  802. If this option is used several times, the last one will be used.
  803. .IP "-0/--http1.0"
  804. (HTTP) Forces curl to issue its requests using HTTP 1.0 instead of using its
  805. internally preferred: HTTP 1.1.
  806. .IP "-1/--tlsv1"
  807. (HTTPS)
  808. Forces curl to use TSL version 1 when negotiating with a remote TLS server.
  809. .IP "-2/--sslv2"
  810. (HTTPS)
  811. Forces curl to use SSL version 2 when negotiating with a remote SSL server.
  812. .IP "-3/--sslv3"
  813. (HTTPS)
  814. Forces curl to use SSL version 3 when negotiating with a remote SSL server.
  815. .IP "-4/--ipv4"
  816. If libcurl is capable of resolving an address to multiple IP versions (which
  817. it is if it is ipv6-capable), this option tells libcurl to resolve names to
  818. IPv4 addresses only. (Added in 7.10.8)
  819. .IP "-6/--ipv6"
  820. If libcurl is capable of resolving an address to multiple IP versions (which
  821. it is if it is ipv6-capable), this option tells libcurl to resolve names to
  822. IPv6 addresses only. (Added in 7.10.8)
  823. .IP "-#/--progress-bar"
  824. Make curl display progress information as a progress bar instead of the
  825. default statistics.
  826. If this option is used twice, the second will again disable the progress bar.
  827. .SH FILES
  828. .I ~/.curlrc
  829. .RS
  830. Default config file.
  831. .SH ENVIRONMENT
  832. .IP "http_proxy [protocol://]<host>[:port]"
  833. Sets proxy server to use for HTTP.
  834. .IP "HTTPS_PROXY [protocol://]<host>[:port]"
  835. Sets proxy server to use for HTTPS.
  836. .IP "FTP_PROXY [protocol://]<host>[:port]"
  837. Sets proxy server to use for FTP.
  838. .IP "GOPHER_PROXY [protocol://]<host>[:port]"
  839. Sets proxy server to use for GOPHER.
  840. .IP "ALL_PROXY [protocol://]<host>[:port]"
  841. Sets proxy server to use if no protocol-specific proxy is set.
  842. .IP "NO_PROXY <comma-separated list of hosts>"
  843. list of host names that shouldn't go through any proxy. If set to a asterisk
  844. '*' only, it matches all hosts.
  845. .SH EXIT CODES
  846. There exists a bunch of different error codes and their corresponding error
  847. messages that may appear during bad conditions. At the time of this writing,
  848. the exit codes are:
  849. .IP 1
  850. Unsupported protocol. This build of curl has no support for this protocol.
  851. .IP 2
  852. Failed to initialize.
  853. .IP 3
  854. URL malformat. The syntax was not correct.
  855. .IP 4
  856. URL user malformatted. The user-part of the URL syntax was not correct.
  857. .IP 5
  858. Couldn't resolve proxy. The given proxy host could not be resolved.
  859. .IP 6
  860. Couldn't resolve host. The given remote host was not resolved.
  861. .IP 7
  862. Failed to connect to host.
  863. .IP 8
  864. FTP weird server reply. The server sent data curl couldn't parse.
  865. .IP 9
  866. FTP access denied. The server denied login.
  867. .IP 10
  868. FTP user/password incorrect. Either one or both were not accepted by the
  869. server.
  870. .IP 11
  871. FTP weird PASS reply. Curl couldn't parse the reply sent to the PASS request.
  872. .IP 12
  873. FTP weird USER reply. Curl couldn't parse the reply sent to the USER request.
  874. .IP 13
  875. FTP weird PASV reply, Curl couldn't parse the reply sent to the PASV request.
  876. .IP 14
  877. FTP weird 227 format. Curl couldn't parse the 227-line the server sent.
  878. .IP 15
  879. FTP can't get host. Couldn't resolve the host IP we got in the 227-line.
  880. .IP 16
  881. FTP can't reconnect. Couldn't connect to the host we got in the 227-line.
  882. .IP 17
  883. FTP couldn't set binary. Couldn't change transfer method to binary.
  884. .IP 18
  885. Partial file. Only a part of the file was transfered.
  886. .IP 19
  887. FTP couldn't download/access the given file, the RETR (or similar) command
  888. failed.
  889. .IP 20
  890. FTP write error. The transfer was reported bad by the server.
  891. .IP 21
  892. FTP quote error. A quote command returned error from the server.
  893. .IP 22
  894. HTTP page not retrieved. The requested url was not found or returned another
  895. error with the HTTP error code being 400 or above. This return code only
  896. appears if \fI-f/--fail\fP is used.
  897. .IP 23
  898. Write error. Curl couldn't write data to a local filesystem or similar.
  899. .IP 24
  900. Malformed user. User name badly specified.
  901. .IP 25
  902. FTP couldn't STOR file. The server denied the STOR operation, used for FTP
  903. uploading.
  904. .IP 26
  905. Read error. Various reading problems.
  906. .IP 27
  907. Out of memory. A memory allocation request failed.
  908. .IP 28
  909. Operation timeout. The specified time-out period was reached according to the
  910. conditions.
  911. .IP 29
  912. FTP couldn't set ASCII. The server returned an unknown reply.
  913. .IP 30
  914. FTP PORT failed. The PORT command failed. Not all FTP servers support the PORT
  915. command, try doing a transfer using PASV instead!
  916. .IP 31
  917. FTP couldn't use REST. The REST command failed. This command is used for
  918. resumed FTP transfers.
  919. .IP 32
  920. FTP couldn't use SIZE. The SIZE command failed. The command is an extension
  921. to the original FTP spec RFC 959.
  922. .IP 33
  923. HTTP range error. The range "command" didn't work.
  924. .IP 34
  925. HTTP post error. Internal post-request generation error.
  926. .IP 35
  927. SSL connect error. The SSL handshaking failed.
  928. .IP 36
  929. FTP bad download resume. Couldn't continue an earlier aborted download.
  930. .IP 37
  931. FILE couldn't read file. Failed to open the file. Permissions?
  932. .IP 38
  933. LDAP cannot bind. LDAP bind operation failed.
  934. .IP 39
  935. LDAP search failed.
  936. .IP 40
  937. Library not found. The LDAP library was not found.
  938. .IP 41
  939. Function not found. A required LDAP function was not found.
  940. .IP 42
  941. Aborted by callback. An application told curl to abort the operation.
  942. .IP 43
  943. Internal error. A function was called with a bad parameter.
  944. .IP 44
  945. Internal error. A function was called in a bad order.
  946. .IP 45
  947. Interface error. A specified outgoing interface could not be used.
  948. .IP 46
  949. Bad password entered. An error was signaled when the password was entered.
  950. .IP 47
  951. Too many redirects. When following redirects, curl hit the maximum amount.
  952. .IP 48
  953. Unknown TELNET option specified.
  954. .IP 49
  955. Malformed telnet option.
  956. .IP 51
  957. The remote peer's SSL certificate wasn't ok
  958. .IP 52
  959. The server didn't reply anything, which here is considered an error.
  960. .IP 53
  961. SSL crypto engine not found
  962. .IP 54
  963. Cannot set SSL crypto engine as default
  964. .IP 55
  965. Failed sending network data
  966. .IP 56
  967. Failure in receiving network data
  968. .IP 57
  969. Share is in use (internal error)
  970. .IP 58
  971. Problem with the local certificate
  972. .IP 59
  973. Couldn't use specified SSL cipher
  974. .IP 60
  975. Problem with the CA cert (path? permission?)
  976. .IP 61
  977. Unrecognized transfer encoding
  978. .IP 62
  979. Invalid LDAP URL
  980. .IP 63
  981. Maximum file size exceeded
  982. .IP XX
  983. There will appear more error codes here in future releases. The existing ones
  984. are meant to never change.
  985. .SH AUTHORS / CONTRIBUTORS
  986. Daniel Stenberg is the main author, but the whole list of contributors is
  987. found in the separate THANKS file.
  988. .SH WWW
  989. http://curl.haxx.se
  990. .SH FTP
  991. ftp://ftp.sunet.se/pub/www/utilities/curl/
  992. .SH "SEE ALSO"
  993. .BR ftp (1),
  994. .BR wget (1),
  995. .BR snarf (1)