page-footer 9.9 KB

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