page-footer 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323
  1. .SH FILES
  2. .I ~/.curlrc
  3. .RS
  4. Default config file, see --config for details.
  5. .SH ENVIRONMENT
  6. The environment variables can be specified in lower case or upper case. The
  7. lower case version has precedence. http_proxy is an exception as it is only
  8. available in lower case.
  9. Using an environment variable to set the proxy has the same effect as using
  10. the --proxy option.
  11. .IP "http_proxy [protocol://]<host>[:port]"
  12. Sets the proxy server to use for HTTP.
  13. .IP "HTTPS_PROXY [protocol://]<host>[:port]"
  14. Sets the proxy server to use for HTTPS.
  15. .IP "[url-protocol]_PROXY [protocol://]<host>[:port]"
  16. Sets the proxy server to use for [url-protocol], where the protocol is a
  17. protocol that curl supports and as specified in a URL. FTP, FTPS, POP3, IMAP,
  18. SMTP, LDAP, etc.
  19. .IP "ALL_PROXY [protocol://]<host>[:port]"
  20. Sets the proxy server to use if no protocol-specific proxy is set.
  21. .IP "NO_PROXY <comma-separated list of hosts/domains>"
  22. list of host names that should not go through any proxy. If set to an asterisk
  23. \&'*' only, it matches all hosts. Each name in this list is matched as either
  24. a domain name which contains the hostname, or the hostname itself.
  25. This environment variable disables use of the proxy even when specified with
  26. the --proxy option. That is
  27. .B NO_PROXY=direct.example.com curl -x http://proxy.example.com
  28. .B http://direct.example.com
  29. accesses the target URL directly, and
  30. .B NO_PROXY=direct.example.com curl -x http://proxy.example.com
  31. .B http://somewhere.example.com
  32. accesses the target URL through the proxy.
  33. The list of host names can also be include numerical IP addresses, and IPv6
  34. versions should then be given without enclosing brackets.
  35. IPv6 numerical addresses are compared as strings, so they will only match if
  36. the representations are the same: "::1" is the same as "::0:1" but they do not
  37. match.
  38. .IP "APPDATA <dir>"
  39. On Windows, this variable is used when trying to find the home directory. If
  40. the primary home variable are all unset.
  41. .IP "COLUMNS <terminal width>"
  42. If set, the specified number of characters will be used as the terminal width
  43. when the alternative progress-bar is shown. If not set, curl will try to
  44. figure it out using other ways.
  45. .IP "CURL_CA_BUNDLE <file>"
  46. If set, will be used as the \fI--cacert\fP value.
  47. .IP "CURL_HOME <dir>"
  48. If set, is the first variable curl checks when trying to find its home
  49. directory. If not set, it continues to check \fBXDG_CONFIG_HOME\fP.
  50. .IP "CURL_SSL_BACKEND <TLS backend>"
  51. If curl was built with support for "MultiSSL", meaning that it has built-in
  52. support for more than one TLS backend, this environment variable can be set to
  53. the case insensitive name of the particular backend to use when curl is
  54. invoked. Setting a name that is not a built-in alternative will make curl
  55. stay with the default.
  56. SSL backend names (case-insensitive): bearssl, gnutls, gskit, mbedtls,
  57. nss, openssl, rustls, schannel, secure-transport, wolfssl
  58. .IP "HOME <dir>"
  59. If set, this is used to find the home directory when that is needed. Like when
  60. looking for the default .curlrc. \fBCURL_HOME\fP and \fBXDG_CONFIG_HOME\fP
  61. have preference.
  62. .IP "QLOGDIR <directory name>"
  63. If curl was built with HTTP/3 support, setting this environment variable to a
  64. local directory will make curl produce qlogs in that directory, using file
  65. names named after the destination connection id (in hex). Do note that these
  66. files can become rather large. Works with both QUIC backends.
  67. .IP SHELL
  68. Used on VMS when trying to detect if using a DCL or a "unix" shell.
  69. .IP "SSL_CERT_DIR <dir>"
  70. If set, will be used as the \fI--capath\fP value.
  71. .IP "SSL_CERT_FILE <path>"
  72. If set, will be used as the \fI--cacert\fP value.
  73. .IP "SSLKEYLOGFILE <file name>"
  74. If you set this environment variable to a file name, curl will store TLS
  75. secrets from its connections in that file when invoked to enable you to
  76. analyze the TLS traffic in real time using network analyzing tools such as
  77. Wireshark. This works with the following TLS backends: OpenSSL, libressl,
  78. BoringSSL, GnuTLS, NSS and wolfSSL.
  79. .IP "USERPROFILE <dir>"
  80. On Windows, this variable is used when trying to find the home directory. If
  81. the other, primary, variable are all unset. If set, curl will use the path
  82. "$USERPROFILE\\Application Data".
  83. .IP "XDG_CONFIG_HOME <dir>"
  84. If \fBCURL_HOME\fP is not set, this variable is checked when looking for a
  85. default .curlrc file.
  86. .SH "PROXY PROTOCOL PREFIXES"
  87. The proxy string may be specified with a protocol:// prefix to specify
  88. alternative proxy protocols. (Added in 7.21.7)
  89. If no protocol is specified in the proxy string or if the string does not match
  90. a supported one, the proxy will be treated as an HTTP proxy.
  91. The supported proxy protocol prefixes are as follows:
  92. .IP "http://"
  93. Makes it use it as an HTTP proxy. The default if no scheme prefix is used.
  94. .IP "https://"
  95. Makes it treated as an **HTTPS** proxy.
  96. .IP "socks4://"
  97. Makes it the equivalent of --socks4
  98. .IP "socks4a://"
  99. Makes it the equivalent of --socks4a
  100. .IP "socks5://"
  101. Makes it the equivalent of --socks5
  102. .IP "socks5h://"
  103. Makes it the equivalent of --socks5-hostname
  104. .SH EXIT CODES
  105. There are a bunch of different error codes and their corresponding error
  106. messages that may appear under error conditions. At the time of this writing,
  107. the exit codes are:
  108. .IP 0
  109. Success. The operation completed successfully according to the instructions.
  110. .IP 1
  111. Unsupported protocol. This build of curl has no support for this protocol.
  112. .IP 2
  113. Failed to initialize.
  114. .IP 3
  115. URL malformed. The syntax was not correct.
  116. .IP 4
  117. A feature or option that was needed to perform the desired request was not
  118. enabled or was explicitly disabled at build-time. To make curl able to do
  119. this, you probably need another build of libcurl.
  120. .IP 5
  121. Could not resolve proxy. The given proxy host could not be resolved.
  122. .IP 6
  123. Could not resolve host. The given remote host could not be resolved.
  124. .IP 7
  125. Failed to connect to host.
  126. .IP 8
  127. Weird server reply. The server sent data curl could not parse.
  128. .IP 9
  129. FTP access denied. The server denied login or denied access to the particular
  130. resource or directory you wanted to reach. Most often you tried to change to a
  131. directory that does not exist on the server.
  132. .IP 10
  133. FTP accept failed. While waiting for the server to connect back when an active
  134. FTP session is used, an error code was sent over the control connection or
  135. similar.
  136. .IP 11
  137. FTP weird PASS reply. Curl could not parse the reply sent to the PASS request.
  138. .IP 12
  139. During an active FTP session while waiting for the server to connect back to
  140. curl, the timeout expired.
  141. .IP 13
  142. FTP weird PASV reply, Curl could not parse the reply sent to the PASV request.
  143. .IP 14
  144. FTP weird 227 format. Curl could not parse the 227-line the server sent.
  145. .IP 15
  146. FTP cannot use host. Could not resolve the host IP we got in the 227-line.
  147. .IP 16
  148. HTTP/2 error. A problem was detected in the HTTP2 framing layer. This is
  149. somewhat generic and can be one out of several problems, see the error message
  150. for details.
  151. .IP 17
  152. FTP could not set binary. Could not change transfer method to binary.
  153. .IP 18
  154. Partial file. Only a part of the file was transferred.
  155. .IP 19
  156. FTP could not download/access the given file, the RETR (or similar) command
  157. failed.
  158. .IP 21
  159. FTP quote error. A quote command returned error from the server.
  160. .IP 22
  161. HTTP page not retrieved. The requested URL was not found or returned another
  162. error with the HTTP error code being 400 or above. This return code only
  163. appears if --fail is used.
  164. .IP 23
  165. Write error. Curl could not write data to a local filesystem or similar.
  166. .IP 25
  167. FTP could not STOR file. The server denied the STOR operation, used for FTP
  168. uploading.
  169. .IP 26
  170. Read error. Various reading problems.
  171. .IP 27
  172. Out of memory. A memory allocation request failed.
  173. .IP 28
  174. Operation timeout. The specified time-out period was reached according to the
  175. conditions.
  176. .IP 30
  177. FTP PORT failed. The PORT command failed. Not all FTP servers support the PORT
  178. command, try doing a transfer using PASV instead!
  179. .IP 31
  180. FTP could not use REST. The REST command failed. This command is used for
  181. resumed FTP transfers.
  182. .IP 33
  183. HTTP range error. The range "command" did not work.
  184. .IP 34
  185. HTTP post error. Internal post-request generation error.
  186. .IP 35
  187. SSL connect error. The SSL handshaking failed.
  188. .IP 36
  189. Bad download resume. Could not continue an earlier aborted download.
  190. .IP 37
  191. FILE could not read file. Failed to open the file. Permissions?
  192. .IP 38
  193. LDAP cannot bind. LDAP bind operation failed.
  194. .IP 39
  195. LDAP search failed.
  196. .IP 41
  197. Function not found. A required LDAP function was not found.
  198. .IP 42
  199. Aborted by callback. An application told curl to abort the operation.
  200. .IP 43
  201. Internal error. A function was called with a bad parameter.
  202. .IP 45
  203. Interface error. A specified outgoing interface could not be used.
  204. .IP 47
  205. Too many redirects. When following redirects, curl hit the maximum amount.
  206. .IP 48
  207. Unknown option specified to libcurl. This indicates that you passed a weird
  208. option to curl that was passed on to libcurl and rejected. Read up in the
  209. manual!
  210. .IP 49
  211. Malformed telnet option.
  212. .IP 51
  213. The peer's SSL certificate or SSH MD5 fingerprint was not OK.
  214. .IP 52
  215. The server did not reply anything, which here is considered an error.
  216. .IP 53
  217. SSL crypto engine not found.
  218. .IP 54
  219. Cannot set SSL crypto engine as default.
  220. .IP 55
  221. Failed sending network data.
  222. .IP 56
  223. Failure in receiving network data.
  224. .IP 58
  225. Problem with the local certificate.
  226. .IP 59
  227. Could not use specified SSL cipher.
  228. .IP 60
  229. Peer certificate cannot be authenticated with known CA certificates.
  230. .IP 61
  231. Unrecognized transfer encoding.
  232. .IP 62
  233. Invalid LDAP URL.
  234. .IP 63
  235. Maximum file size exceeded.
  236. .IP 64
  237. Requested FTP SSL level failed.
  238. .IP 65
  239. Sending the data requires a rewind that failed.
  240. .IP 66
  241. Failed to initialise SSL Engine.
  242. .IP 67
  243. The user name, password, or similar was not accepted and curl failed to log in.
  244. .IP 68
  245. File not found on TFTP server.
  246. .IP 69
  247. Permission problem on TFTP server.
  248. .IP 70
  249. Out of disk space on TFTP server.
  250. .IP 71
  251. Illegal TFTP operation.
  252. .IP 72
  253. Unknown TFTP transfer ID.
  254. .IP 73
  255. File already exists (TFTP).
  256. .IP 74
  257. No such user (TFTP).
  258. .IP 75
  259. Character conversion failed.
  260. .IP 76
  261. Character conversion functions required.
  262. .IP 77
  263. Problem reading the SSL CA cert (path? access rights?).
  264. .IP 78
  265. The resource referenced in the URL does not exist.
  266. .IP 79
  267. An unspecified error occurred during the SSH session.
  268. .IP 80
  269. Failed to shut down the SSL connection.
  270. .IP 82
  271. Could not load CRL file, missing or wrong format (added in 7.19.0).
  272. .IP 83
  273. Issuer check failed (added in 7.19.0).
  274. .IP 84
  275. The FTP PRET command failed.
  276. .IP 85
  277. Mismatch of RTSP CSeq numbers.
  278. .IP 86
  279. Mismatch of RTSP Session Identifiers.
  280. .IP 87
  281. Unable to parse FTP file list.
  282. .IP 88
  283. FTP chunk callback reported error.
  284. .IP 89
  285. No connection available, the session will be queued.
  286. .IP 90
  287. SSL public key does not matched pinned public key.
  288. .IP 91
  289. Invalid SSL certificate status.
  290. .IP 92
  291. Stream error in HTTP/2 framing layer.
  292. .IP 93
  293. An API function was called from inside a callback.
  294. .IP 94
  295. An authentication function returned an error.
  296. .IP 95
  297. A problem was detected in the HTTP/3 layer. This is somewhat generic and can
  298. be one out of several problems, see the error message for details.
  299. .IP 96
  300. QUIC connection error. This error may be caused by an SSL library error. QUIC
  301. is the protocol used for HTTP/3 transfers.
  302. .IP XX
  303. More error codes will appear here in future releases. The existing ones
  304. are meant to never change.
  305. .SH BUGS
  306. If you experience any problems with curl, submit an issue in the project's bug
  307. tracker on GitHub: https://github.com/curl/curl/issues
  308. .SH AUTHORS / CONTRIBUTORS
  309. Daniel Stenberg is the main author, but the whole list of contributors is
  310. found in the separate THANKS file.
  311. .SH WWW
  312. https://curl.se
  313. .SH "SEE ALSO"
  314. .BR ftp (1),
  315. .BR wget (1)