诸暨麻将添加redis
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

293 lines
13 KiB

  1. .\" **************************************************************************
  2. .\" * _ _ ____ _
  3. .\" * Project ___| | | | _ \| |
  4. .\" * / __| | | | |_) | |
  5. .\" * | (__| |_| | _ <| |___
  6. .\" * \___|\___/|_| \_\_____|
  7. .\" *
  8. .\" * Copyright (C) 1998 - 2012, Daniel Stenberg, <daniel@haxx.se>, et al.
  9. .\" *
  10. .\" * This software is licensed as described in the file COPYING, which
  11. .\" * you should have received as part of this distribution. The terms
  12. .\" * are also available at http://curl.haxx.se/docs/copyright.html.
  13. .\" *
  14. .\" * You may opt to use, copy, modify, merge, publish, distribute and/or sell
  15. .\" * copies of the Software, and permit persons to whom the Software is
  16. .\" * furnished to do so, under the terms of the COPYING file.
  17. .\" *
  18. .\" * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
  19. .\" * KIND, either express or implied.
  20. .\" *
  21. .\" **************************************************************************
  22. .\"
  23. .TH libcurl-errors 3 "1 Jan 2010" "libcurl 7.20.0" "libcurl errors"
  24. .SH NAME
  25. libcurl-errors \- error codes in libcurl
  26. .SH DESCRIPTION
  27. This man page includes most, if not all, available error codes in libcurl.
  28. Why they occur and possibly what you can do to fix the problem are also included.
  29. .SH "CURLcode"
  30. Almost all "easy" interface functions return a CURLcode error code. No matter
  31. what, using the \fIcurl_easy_setopt(3)\fP option \fICURLOPT_ERRORBUFFER\fP is
  32. a good idea as it will give you a human readable error string that may offer
  33. more details about the cause of the error than just the error code.
  34. \fIcurl_easy_strerror(3)\fP can be called to get an error string from a
  35. given CURLcode number.
  36. CURLcode is one of the following:
  37. .IP "CURLE_OK (0)"
  38. All fine. Proceed as usual.
  39. .IP "CURLE_UNSUPPORTED_PROTOCOL (1)"
  40. The URL you passed to libcurl used a protocol that this libcurl does not
  41. support. The support might be a compile-time option that you didn't use, it
  42. can be a misspelled protocol string or just a protocol libcurl has no code
  43. for.
  44. .IP "CURLE_FAILED_INIT (2)"
  45. Very early initialization code failed. This is likely to be an internal error
  46. or problem, or a resource problem where something fundamental couldn't get
  47. done at init time.
  48. .IP "CURLE_URL_MALFORMAT (3)"
  49. The URL was not properly formatted.
  50. .IP "CURLE_NOT_BUILT_IN (4)"
  51. A requested feature, protocol or option was not found built-in in this libcurl
  52. due to a build-time decision. This means that a feature or option was not
  53. enabled or explicitly disabled when libcurl was built and in order to get it
  54. to function you have to get a rebuilt libcurl.
  55. .IP "CURLE_COULDNT_RESOLVE_PROXY (5)"
  56. Couldn't resolve proxy. The given proxy host could not be resolved.
  57. .IP "CURLE_COULDNT_RESOLVE_HOST (6)"
  58. Couldn't resolve host. The given remote host was not resolved.
  59. .IP "CURLE_COULDNT_CONNECT (7)"
  60. Failed to connect() to host or proxy.
  61. .IP "CURLE_FTP_WEIRD_SERVER_REPLY (8)"
  62. After connecting to a FTP server, libcurl expects to get a certain reply
  63. back. This error code implies that it got a strange or bad reply. The given
  64. remote server is probably not an OK FTP server.
  65. .IP "CURLE_REMOTE_ACCESS_DENIED (9)"
  66. We were denied access to the resource given in the URL. For FTP, this occurs
  67. while trying to change to the remote directory.
  68. .IP "CURLE_FTP_ACCEPT_FAILED (10)"
  69. While waiting for the server to connect back when an active FTP session is
  70. used, an error code was sent over the control connection or similar.
  71. .IP "CURLE_FTP_WEIRD_PASS_REPLY (11)"
  72. After having sent the FTP password to the server, libcurl expects a proper
  73. reply. This error code indicates that an unexpected code was returned.
  74. .IP "CURLE_FTP_ACCEPT_TIMEOUT (12)"
  75. During an active FTP session while waiting for the server to connect, the
  76. \fICURLOPT_ACCEPTTIMOUT_MS\fP (or the internal default) timeout expired.
  77. .IP "CURLE_FTP_WEIRD_PASV_REPLY (13)"
  78. libcurl failed to get a sensible result back from the server as a response to
  79. either a PASV or a EPSV command. The server is flawed.
  80. .IP "CURLE_FTP_WEIRD_227_FORMAT (14)"
  81. FTP servers return a 227-line as a response to a PASV command. If libcurl
  82. fails to parse that line, this return code is passed back.
  83. .IP "CURLE_FTP_CANT_GET_HOST (15)"
  84. An internal failure to lookup the host used for the new connection.
  85. .IP "CURLE_FTP_COULDNT_SET_TYPE (17)"
  86. Received an error when trying to set the transfer mode to binary or ASCII.
  87. .IP "CURLE_PARTIAL_FILE (18)"
  88. A file transfer was shorter or larger than expected. This happens when the
  89. server first reports an expected transfer size, and then delivers data that
  90. doesn't match the previously given size.
  91. .IP "CURLE_FTP_COULDNT_RETR_FILE (19)"
  92. This was either a weird reply to a 'RETR' command or a zero byte transfer
  93. complete.
  94. .IP "CURLE_QUOTE_ERROR (21)"
  95. When sending custom "QUOTE" commands to the remote server, one of the commands
  96. returned an error code that was 400 or higher (for FTP) or otherwise
  97. indicated unsuccessful completion of the command.
  98. .IP "CURLE_HTTP_RETURNED_ERROR (22)"
  99. This is returned if CURLOPT_FAILONERROR is set TRUE and the HTTP server
  100. returns an error code that is >= 400.
  101. .IP "CURLE_WRITE_ERROR (23)"
  102. An error occurred when writing received data to a local file, or an error was
  103. returned to libcurl from a write callback.
  104. .IP "CURLE_UPLOAD_FAILED (25)"
  105. Failed starting the upload. For FTP, the server typically denied the STOR
  106. command. The error buffer usually contains the server's explanation for this.
  107. .IP "CURLE_READ_ERROR (26)"
  108. There was a problem reading a local file or an error returned by the read
  109. callback.
  110. .IP "CURLE_OUT_OF_MEMORY (27)"
  111. A memory allocation request failed. This is serious badness and
  112. things are severely screwed up if this ever occurs.
  113. .IP "CURLE_OPERATION_TIMEDOUT (28)"
  114. Operation timeout. The specified time-out period was reached according to the
  115. conditions.
  116. .IP "CURLE_FTP_PORT_FAILED (30)"
  117. The FTP PORT command returned error. This mostly happens when you haven't
  118. specified a good enough address for libcurl to use. See \fICURLOPT_FTPPORT\fP.
  119. .IP "CURLE_FTP_COULDNT_USE_REST (31)"
  120. The FTP REST command returned error. This should never happen if the server is
  121. sane.
  122. .IP "CURLE_RANGE_ERROR (33)"
  123. The server does not support or accept range requests.
  124. .IP "CURLE_HTTP_POST_ERROR (34)"
  125. This is an odd error that mainly occurs due to internal confusion.
  126. .IP "CURLE_SSL_CONNECT_ERROR (35)"
  127. A problem occurred somewhere in the SSL/TLS handshake. You really want the
  128. error buffer and read the message there as it pinpoints the problem slightly
  129. more. Could be certificates (file formats, paths, permissions), passwords, and
  130. others.
  131. .IP "CURLE_BAD_DOWNLOAD_RESUME (36)"
  132. The download could not be resumed because the specified offset was out of the
  133. file boundary.
  134. .IP "CURLE_FILE_COULDNT_READ_FILE (37)"
  135. A file given with FILE:// couldn't be opened. Most likely because the file
  136. path doesn't identify an existing file. Did you check file permissions?
  137. .IP "CURLE_LDAP_CANNOT_BIND (38)"
  138. LDAP cannot bind. LDAP bind operation failed.
  139. .IP "CURLE_LDAP_SEARCH_FAILED (39)"
  140. LDAP search failed.
  141. .IP "CURLE_FUNCTION_NOT_FOUND (41)"
  142. Function not found. A required zlib function was not found.
  143. .IP "CURLE_ABORTED_BY_CALLBACK (42)"
  144. Aborted by callback. A callback returned "abort" to libcurl.
  145. .IP "CURLE_BAD_FUNCTION_ARGUMENT (43)"
  146. Internal error. A function was called with a bad parameter.
  147. .IP "CURLE_INTERFACE_FAILED (45)"
  148. Interface error. A specified outgoing interface could not be used. Set which
  149. interface to use for outgoing connections' source IP address with
  150. CURLOPT_INTERFACE.
  151. .IP "CURLE_TOO_MANY_REDIRECTS (47)"
  152. Too many redirects. When following redirects, libcurl hit the maximum amount.
  153. Set your limit with CURLOPT_MAXREDIRS.
  154. .IP "CURLE_UNKNOWN_OPTION (48)"
  155. An option passed to libcurl is not recognized/known. Refer to the appropriate
  156. documentation. This is most likely a problem in the program that uses
  157. libcurl. The error buffer might contain more specific information about which
  158. exact option it concerns.
  159. .IP "CURLE_TELNET_OPTION_SYNTAX (49)"
  160. A telnet option string was Illegally formatted.
  161. .IP "CURLE_PEER_FAILED_VERIFICATION (51)"
  162. The remote server's SSL certificate or SSH md5 fingerprint was deemed not OK.
  163. .IP "CURLE_GOT_NOTHING (52)"
  164. Nothing was returned from the server, and under the circumstances, getting
  165. nothing is considered an error.
  166. .IP "CURLE_SSL_ENGINE_NOTFOUND (53)"
  167. The specified crypto engine wasn't found.
  168. .IP "CURLE_SSL_ENGINE_SETFAILED (54)"
  169. Failed setting the selected SSL crypto engine as default!
  170. .IP "CURLE_SEND_ERROR (55)"
  171. Failed sending network data.
  172. .IP "CURLE_RECV_ERROR (56)"
  173. Failure with receiving network data.
  174. .IP "CURLE_SSL_CERTPROBLEM (58)"
  175. problem with the local client certificate.
  176. .IP "CURLE_SSL_CIPHER (59)"
  177. Couldn't use specified cipher.
  178. .IP "CURLE_SSL_CACERT (60)"
  179. Peer certificate cannot be authenticated with known CA certificates.
  180. .IP "CURLE_BAD_CONTENT_ENCODING (61)"
  181. Unrecognized transfer encoding.
  182. .IP "CURLE_LDAP_INVALID_URL (62)"
  183. Invalid LDAP URL.
  184. .IP "CURLE_FILESIZE_EXCEEDED (63)"
  185. Maximum file size exceeded.
  186. .IP "CURLE_USE_SSL_FAILED (64)"
  187. Requested FTP SSL level failed.
  188. .IP "CURLE_SEND_FAIL_REWIND (65)"
  189. When doing a send operation curl had to rewind the data to retransmit, but the
  190. rewinding operation failed.
  191. .IP "CURLE_SSL_ENGINE_INITFAILED (66)"
  192. Initiating the SSL Engine failed.
  193. .IP "CURLE_LOGIN_DENIED (67)"
  194. The remote server denied curl to login (Added in 7.13.1)
  195. .IP "CURLE_TFTP_NOTFOUND (68)"
  196. File not found on TFTP server.
  197. .IP "CURLE_TFTP_PERM (69)"
  198. Permission problem on TFTP server.
  199. .IP "CURLE_REMOTE_DISK_FULL (70)"
  200. Out of disk space on the server.
  201. .IP "CURLE_TFTP_ILLEGAL (71)"
  202. Illegal TFTP operation.
  203. .IP "CURLE_TFTP_UNKNOWNID (72)"
  204. Unknown TFTP transfer ID.
  205. .IP "CURLE_REMOTE_FILE_EXISTS (73)"
  206. File already exists and will not be overwritten.
  207. .IP "CURLE_TFTP_NOSUCHUSER (74)"
  208. This error should never be returned by a properly functioning TFTP server.
  209. .IP "CURLE_CONV_FAILED (75)"
  210. Character conversion failed.
  211. .IP "CURLE_CONV_REQD (76)"
  212. Caller must register conversion callbacks.
  213. .IP "CURLE_SSL_CACERT_BADFILE (77)"
  214. Problem with reading the SSL CA cert (path? access rights?)
  215. .IP "CURLE_REMOTE_FILE_NOT_FOUND (78)"
  216. The resource referenced in the URL does not exist.
  217. .IP "CURLE_SSH (79)"
  218. An unspecified error occurred during the SSH session.
  219. .IP "CURLE_SSL_SHUTDOWN_FAILED (80)"
  220. Failed to shut down the SSL connection.
  221. .IP "CURLE_AGAIN (81)"
  222. Socket is not ready for send/recv wait till it's ready and try again. This
  223. return code is only returned from \fIcurl_easy_recv(3)\fP and
  224. \fIcurl_easy_send(3)\fP (Added in 7.18.2)
  225. .IP "CURLE_SSL_CRL_BADFILE (82)"
  226. Failed to load CRL file (Added in 7.19.0)
  227. .IP "CURLE_SSL_ISSUER_ERROR (83)"
  228. Issuer check failed (Added in 7.19.0)
  229. .IP "CURLE_FTP_PRET_FAILED (84)"
  230. The FTP server does not understand the PRET command at all or does not support
  231. the given argument. Be careful when using \fICURLOPT_CUSTOMREQUEST\fP, a
  232. custom LIST command will be sent with PRET CMD before PASV as well. (Added in
  233. 7.20.0)
  234. .IP "CURLE_RTSP_CSEQ_ERROR (85)"
  235. Mismatch of RTSP CSeq numbers.
  236. .IP "CURLE_RTSP_SESSION_ERROR (86)"
  237. Mismatch of RTSP Session Identifiers.
  238. .IP "CURLE_FTP_BAD_FILE_LIST (87)"
  239. Unable to parse FTP file list (during FTP wildcard downloading).
  240. .IP "CURLE_CHUNK_FAILED (88)"
  241. Chunk callback reported error.
  242. .IP "CURLE_NO_CONNECTION_AVAILABLE (89)"
  243. (For internal use only, will never be returned by libcurl) No connection
  244. available, the session will be queued. (added in 7.30.0)
  245. .IP "CURLE_OBSOLETE*"
  246. These error codes will never be returned. They were used in an old libcurl
  247. version and are currently unused.
  248. .SH "CURLMcode"
  249. This is the generic return code used by functions in the libcurl multi
  250. interface. Also consider \fIcurl_multi_strerror(3)\fP.
  251. .IP "CURLM_CALL_MULTI_PERFORM (-1)"
  252. This is not really an error. It means you should call
  253. \fIcurl_multi_perform(3)\fP again without doing select() or similar in
  254. between. Before version 7.20.0 this could be returned by
  255. \fIcurl_multi_perform(3)\fP, but in later versions this return code is never
  256. used.
  257. .IP "CURLM_OK (0)"
  258. Things are fine.
  259. .IP "CURLM_BAD_HANDLE (1)"
  260. The passed-in handle is not a valid CURLM handle.
  261. .IP "CURLM_BAD_EASY_HANDLE (2)"
  262. An easy handle was not good/valid. It could mean that it isn't an easy handle
  263. at all, or possibly that the handle already is in used by this or another
  264. multi handle.
  265. .IP "CURLM_OUT_OF_MEMORY (3)"
  266. You are doomed.
  267. .IP "CURLM_INTERNAL_ERROR (4)"
  268. This can only be returned if libcurl bugs. Please report it to us!
  269. .IP "CURLM_BAD_SOCKET (5)"
  270. The passed-in socket is not a valid one that libcurl already knows about.
  271. (Added in 7.15.4)
  272. .IP "CURLM_UNKNOWN_OPTION (6)"
  273. curl_multi_setopt() with unsupported option
  274. (Added in 7.15.4)
  275. .SH "CURLSHcode"
  276. The "share" interface will return a CURLSHcode to indicate when an error has
  277. occurred. Also consider \fIcurl_share_strerror(3)\fP.
  278. .IP "CURLSHE_OK (0)"
  279. All fine. Proceed as usual.
  280. .IP "CURLSHE_BAD_OPTION (1)"
  281. An invalid option was passed to the function.
  282. .IP "CURLSHE_IN_USE (2)"
  283. The share object is currently in use.
  284. .IP "CURLSHE_INVALID (3)"
  285. An invalid share object was passed to the function.
  286. .IP "CURLSHE_NOMEM (4)"
  287. Not enough memory was available.
  288. (Added in 7.12.0)
  289. .IP "CURLSHE_NOT_BUILT_IN (5)"
  290. The requested sharing could not be done because the library you use don't have
  291. that particular feature enabled. (Added in 7.23.0)