2
0

page-footer 8.2 KB

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