Curl Error code Description

Source: Internet
Author: User
Tags ftp connection ldap ssl certificate ssl connection

1. Get the error code

$errno =curl_errno ($ch); if ($errno!=0) {...}

2, error code description

<?phpreturn [' 1 ' = ' + ' Curle_unsupported_protocol (1)-the URL you send to Libcurl uses a protocol that is not supported by this libcurl. This may be caused by a compile-time option that you did not use (either the protocol string was spelled incorrectly or the protocol Libcurl code was not specified). ', ' 2 ' = ' + ' Curle_failed_init (2) – Very early initialization code failed. may be an internal error or issue. ', ' 3 ' = ' + ' Curle_url_malformat (3) – The URL format is incorrect. ', ' 5 ' = ' + ' Curle_couldnt_resolve_proxy (5) – the proxy server could not be resolved. The specified proxy server host could not be resolved. ', ' 6 ' = ' + ' Curle_couldnt_resolve_host (6) – Unable to resolve the host. The specified remote host could not be resolved. ', ' 7 ' = ' + ' Curle_couldnt_connect (7) – Unable to connect to the host or proxy server via connect (). ', ' 8 ' + ' Curle_ftp_weird_server_reply (8) – after connecting to the FTP server, Libcurl needs to receive a specific response. This error code indicates that an abnormal or incorrect reply was received. The specified remote server may not be the correct FTP server. ', ' 9 ' = ' curle_remote_access_denied ' (9) – We cannot access the resources specified in the URL. For FTP, this happens if you try to change to a remote directory. ', ' curle_ftp_weird_pass_reply ' (11) – After the FTP password is sent to the server, Libcurl needs to receive the correct response. This error code indicates that the code returned is unexpected. ', ' + ' curle_ftp_weird_pasv_reply (13) –libcurl cannot receive useful results from the server as a response to the PASV or EPSV command. There is a problem with the server. ', ' + ' + ' Curle_ftp_weird_227_format (14) –ftp the server returns 227 rows as a response to the PASV command. If Libcurl cannot parse this line, it will return this code. ', ' curle_ftp_cant_get_ 'Host (15) – An internal error occurred while locating the host for the new connection. ', ' + ' = ' Curle_ftp_couldnt_set_type (17) – An error occurred while trying to set the transfer mode to binary or ASCII. ', ' + ' Curle_partial_file (18) – File transfer size is less than or greater than expected. This error occurs when the server first reports an expected transfer size, and then the transmitted data does not match the previously specified size. ', ' + ' + ' Curle_ftp_couldnt_retr_file (19) – ' RETR ' command received an abnormal response, or the completed transmission size is 0 bytes. ', ' + ' Curle_quote_error (21) – When a custom "QUOTE" command is sent to a remote server, one of the commands returns a number with an error code of 400 or greater (for FTP), or otherwise indicates that the command could not be completed successfully. ', ' Curle_http_returned_error ' (22) – This code is returned if Curlopt_failonerror is set to TRUE and the HTTP server returns an error code of >= 400. (This error code was formerly known as Curle_http_not_found.) ) ', ' Curle_write_error (23) – An error occurred while writing the received data to the local file, or an error was returned to Libcurl by the write callback (write callback). ', ' + ' + ' curle_upload_failed (25) – Unable to start uploading. For FTP, the server typically refuses to execute the STOR command. The error buffer typically provides a description of the problem to the server. (This error code was formerly known as Curle_ftp_couldnt_stor_file.) ) ', ' Curle_read_error ' (26) – encountered a problem while reading a local file, or returned an error by reading the callback (read callback). ', ' curle_out_of_memory ' (27)-Memory allocation request failed. This error is more severe and if this error occurs, a very serious problem has occurred. ', ' + ' + ' Curle_operation_timedout (28) – Operation timed out. The timeout specified according to the appropriate situation has been reachedRoom ', ' + ' + ' curle_ftp_port_failed (30) –ftp PORT command returns an error. This issue is most likely to occur when the appropriate address is not specified for Libcurl. See Curlopt_ftpport. ', ' + ' = ' + ' Curle_ftp_couldnt_use_rest (31) –ftp REST command returns an error. This should not happen if the server is healthy. ', ' Curle_range_error ' (33) – The server does not support or accept range requests. ', ' curle_http_post_error ' + ' (34)-This problem is relatively rare, mainly caused by internal confusion. ', ' + ' Curle_ssl_connect_error (35) – This error may occur when SSL/TLS is used. You can access the error buffer to see the appropriate information, which is described in more detail in this issue. This issue may be caused by a certificate (file format, path, license), password, and other factors. ', ' curle_ftp_bad_download_resume ' = ' + ' (36) – try to recover an FTP connection that exceeds the file size limit. ', ' pns ' = ' Curle_file_couldnt_read_file (37) – Unable to open the file under the file://path. The most likely reason is that the file path does not recognize the existing file. It is recommended that you check the file access permissions. ', ' curle_ldap_cannot_bind ' = ' + ' (38) –ldap cannot bind. The LDAP bind operation failed. ', ' curle_ldap_search_failed ' (39) –ldap search is not possible. ', ' curle_function_not_found ' = ' + ' (41)-Function not found. The necessary zlib function was not found. ', ' Curle_aborted_by_callback ' (42) – aborted by the callback. The callback returned "abort" to Libcurl. ', ' curle_bad_function_argument ' + ' (43)-Internal error. The function was called with an incorrect argument. ', ' curle_interface_failed ' (45)-Interface error. The specified external interface is not available.Please set which interface to use to handle the source IP address of the external connection via curlopt_interface. (This error code was formerly known as Curle_http_port_failed.) ) ', ' curle_too_many_redirects ' (47) – redirects too much. When you redirect, the libcurl reaches the maximum page hit limit. Please use Curlopt_maxredirs to set the upper limit. ', ' Curle_unknown_telnet_option ' (48) – the option set with Curlopt_telnetoptions is not recognized. Please refer to the relevant documentation. ', ' Curle_telnet_option_syntax ' (49) –telnet option string is not formatted correctly. ', ' Curle_peer_failed_verification (51) – The remote server's SSL certificate or SSH MD5 fingerprint is incorrect. ', ' curle_got_nothing ' (52) – The server does not return any data, and in that case, no data returned is an error. ', ' Curle_ssl_engine_notfound ' (53) – The specified encryption engine could not be found. ', ' curle_ssl_engine_setfailed ' (54) – The selected SSL encryption engine cannot be set as the default option. ', ' + ' Curle_send_error (55) – Unable to send network data. ', ' Curle_recv_error ' (56) – Failed to receive network data. ', ' Curle_ssl_certproblem ' (58) – Local client certificate has a problem ', ' curle_ssl_cipher ' + ' (59) – Unable to use the specified key ', ' ' + ' = ' Curle_ Ssl_cacert (60) – Unable to verify the peer certificate with a known CA certificate ', ' 61 ' + ' curle_bad_content_encoding-Unrecognized transmission code ', ' + ' + ' CURLE_LDAP_ Invalid_url (62) The –LDAP URL is invalid ', ' The ' curle_filesize_exceeded ' (63) – Exceeds the file size limit ', ' + ' + ' curle_use_ssl_failed (64)-The requested FTP SSL level fails ', ' + ' + ' Curle_send_fail_rewind (65) – When sending operation, c The URL must rotate the data for re-transmission, but the rotation operation failed ', ' curle_ssl_engine_initfailed (66) –ssl engine failed to initialize ', ' "'" ' "'" ' Curle_login_denied ' (  67) – Remote server rejects Curl login (7.13.1 new) ', ' Curle_tftp_notfound (68)-Cannot find the file on the TFTP server ', ' ' Curle_tftp_perm ' (69) – Encountered a permissions problem on the TFTP server ', ' curle_remote_disk_full ' = ' + ' (70)-Insufficient server disk space ', ' curle_tftp_illegal ' + ' (71) –TFTP operation illegal ', ' Curle_tftp_unknownid ' + ' (72) –TFTP transmission ID unknown ', ' curle_remote_file_exists ' (73)-file already exists, cannot be overwritten ', ' " Curle_tftp_nosuchuser (74) – A functioning TFTP server does not return this error ', ' ' 75 ' and ' curle_conv_failed ' – character conversion failed ', ' "" "" and "Curle_conv_" REQD (76) – The caller must register a conversion callback ', ' curle_ssl_cacert_badfile ' = ' + ' (77) – there is a problem reading the SSL CA certificate (possibly a path error or access rights issue) ', ' "" + ' Curle_ ' Remote_file_not_found (78) – the resource referenced in the URL does not exist ', ' ' Curle_ssh ' (79) An unrecognized error occurred in the – SSH session ', ' ' "' + ' Curle_ssl_shutdown_ FAILED (80) – Unable to terminate SSL connection '];

  

Curl Error code Description

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.