This mostly happens when you haven't specified a good enough address for libcurl to use. CURLE_OPERATION_TIMEDOUT (28) Operation timeout. CURLE_PARTIAL_FILE (18) A file transfer was shorter or larger than expected. Ending a script with exit 127 would certainly cause confusion when troubleshooting (is the error code a "command not found" or a user-defined one?). this contact form
Received on 2009-02-17 This message: [ Message body ] Next message: Daniel Stenberg: "RE: FTP Download Problem - code 78" Previous message: Daniel Stenberg: "Re: FTP Download Problem - code 78" How can we now be sure the error is "file not found" ? CURLE_RECV_ERROR (56) Failure with receiving network data. curl http error-handling share|improve this question edited Apr 16 '14 at 2:51 user61786 asked Apr 15 '14 at 15:44 Wes 1792316 add a comment| 2 Answers 2 active oldest votes up https://curl.haxx.se/libcurl/c/libcurl-errors.html
Component: CURL Version: 2.5 Mac OS X: Yes Windows: Yes Server: Yes FileMaker Cloud: Yes MBS( "CURL.ErrorCode"; Handle ) Parameters Parameter Description Example value Handle The CURL session handle. $curl Result CURLE_RECV_ERROR (56) Failure with receiving network data. CURLE_TFTP_PERM (69) Permission problem on TFTP server. The author of this document proposes restricting user-defined exit codes to the range 64 - 113 (in addition to 0, for success), to conform with the C/C++ standard.
CURLE_FTP_PRET_FAILED84a PRET command failed CURLE_RTSP_CSEQ_ERROR85mismatch of RTSP CSeq numbers CURLE_RTSP_SESSION_ERROR86mismatch of RTSP Session Identifiers CURLE_FTP_BAD_FILE_LIST87unable to parse FTP file list CURLE_CHUNK_FAILED88chunk callback reported error Examples On success puts download in container, Curl Http Code CURLE_UPLOAD_FAILED25failed upload "command" CURLE_READ_ERROR26couldn't open/read from file CURLE_OUT_OF_MEMORY27Out Of memory CURLE_OPERATION_TIMEDOUT28the timeout time was reached CURLE_FTP_PORT_FAILED30FTP PORT operation failed CURLE_FTP_COULDNT_USE_REST31the REST command failed CURLE_RANGE_ERROR33RANGE "command" didn't work CURLE_HTTP_POST_ERROR34HTTP Post failed. What is a PhD student? have a peek at this web-site A callback returned "abort" to libcurl.
CURLE_SSL_CONNECT_ERROR (35) A problem occurred somewhere in the SSL/TLS handshake. Curl Sslread() Return Error -9806 Reload to refresh your session. See CURLOPT_FTPPORT. CURLE_FTP_COULDNT_SET_TYPE (17) Received an error when trying to set the transfer mode to binary or ASCII.
CURLM_BAD_SOCKET (5) The passed-in socket is not a valid one that libcurl already knows about. (Added in 7.15.4) CURLM_UNKNOWN_OPTION (6) curl_multi_setopt() with unsupported option (Added in 7.15.4) CURLM_ADDED_ALREADY (7) An easy http://php.net/manual/en/function.curl-errno.php CURLE_INTERFACE_FAILED45CURL.OptionInterface failed CURLE_TOO_MANY_REDIRECTS 47catch endless re-direct loops CURLE_UNKNOWN_TELNET_OPTION48User specified an unknown option CURLE_TELNET_OPTION_SYNTAX 49Malformed telnet option CURLE_PEER_FAILED_VERIFICATION51peer's certificate or fingerprint wasn't verified fine CURLE_GOT_NOTHING52when this is a specific error CURLE_SSL_ENGINE_NOTFOUND53SSL crypto Curl Error 35 CURLMcode This is the generic return code used by functions in the libcurl multi interface. Curl Error 60 In normal cases when an HTTP server fails to deliver a document, it returns an HTML document stating so (which often also describes why and more).
CURLM_OUT_OF_MEMORY (3) You are doomed. weblink CURLcode is one of the following: CURLE_OK (0) All fine. Browse other questions tagged curl http error-handling or ask your own question. CURLE_FTP_WEIRD_PASV_REPLY (13) libcurl failed to get a sensible result back from the server as a response to either a PASV or a EPSV command. Curl Error Buffer
The given proxy host could not be resolved. CURLE_FTP_PORT_FAILED (30) The FTP PORT command returned error. CURLE_UNSUPPORTED_PROTOCOL1Unsupported protocol. navigate here CURLE_COULDNT_RESOLVE_HOST6DNS didn't return IP for host.
Head, Shoulders, Knees and Toes, Knees and Toes Bayesian vs Frequentist: practical difference w.r.t. Php Curl Response Code But the later can also be returned for other kind of errors (55x). CURLE_SSL_ENGINE_SETFAILED (54) Failed setting the selected SSL crypto engine as default!
CURLE_UPLOAD_FAILED (25) Failed starting the upload. CURLE_RTSP_SESSION_ERROR (86) Mismatch of RTSP Session Identifiers. For FTP, the server typically denied the STOR command. Curl Error 56 Failure When Receiving Data From The Peer CURLE_SSL_INVALIDCERTSTATUS (91) Status returned failure when asked with CURLOPT_SSL_VERIFYSTATUS.
CURLE_CONV_FAILED (75) Character conversion failed. Are electric bike speed limitations set in stone? Any hint or curl library patch welcome ! http://digitalezines.com/curl-error/curl-errors-php.html share|improve this answer answered Oct 10 '13 at 18:36 rampion 992712 1 So which parts of it does it do and not do? –rogerdpack Jul 18 at 4:45 2
CURLE_FTP_WEIRD_227_FORMAT14FTP error. CURLcode Almost all "easy" interface functions return a CURLcode error code. This return code is only returned from curl_easy_recv(3) and curl_easy_send(3) (Added in 7.18.2) CURLE_SSL_CRL_BADFILE (82) Failed to load CRL file (Added in 7.19.0) CURLE_SSL_ISSUER_ERROR (83) Issuer check failed (Added in 7.19.0) CURLE_BAD_CONTENT_ENCODING (61) Unrecognized transfer encoding.
When following redirects, libcurl hit the maximum amount.