page-footer 9.2 KB

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