May 2018

Continued: Chinese cURL error code comparison table
It is mainly done according to the project requirements PHP cURL error instance The code may not be well written. If there are errors, please correct them!

 <? php $error_codes_chinese = array( '0'=>'Everything is fine. As usual. ', '1'=>'The URL you passed to libcurl uses a protocol that is not supported by this libcurl. Support may be a compile time option that you do not use. It may be a misspelled protocol string, or just a protocol for which libcurl has no code. ', '2'=>'Very early initialization code failed. This may be an internal error or problem, or a resource problem that cannot be completed at the initial stage. ', '3'=>'The URL format is incorrect.', '4'=>'Because of the build time, the built-in requested function, protocol or option is not found in this libcurl. This means that a function or option is not enabled or explicitly disabled when building libcurl, and in order to rebuild its function, libcurl. ', '5'=>'The proxy could not be resolved. The given proxy host cannot be resolved. ', '6'=>'The host could not be resolved. The given remote host is unresolved. ', '7'=>'Unable to connect to the host or agent.', '8'=>'The data libcurl sent by the server cannot be parsed. This error code is used not only for FTP, but also as CURLE_WEIRD_SERVER_REPLY since 7.51.0. ', '9'=>'We are denied access to the resource given in the URL. For FTP, this happens when trying to change to a remote directory. ', '10'=>'When waiting for the server to connect back while using an active FTP session, an error code was sent through a control connection or similar method.', '11'=>'After sending the FTP password to the server, libcurl needs a correct reply. This error code indicates that an unexpected code has been returned. ', '12'=>'CURLOPT_ACCEPTTIMEOUT_MS (or internal default value) timeout has expired during active FTP session waiting for server connection', '13'=>'As a response to the PASV or EPSV command, libcurl cannot obtain sensible results from the server. The server is defective ', '14'=>'The FTP server returns 227 lines in response to the PASV command. This code is returned if libcurl cannot parse the line. ', '15'=>'Find the internal fault of the newly connected host.', '16'=>'A problem was detected in the HTTP2 framing layer. This is a bit general. It may be one of several problems. Please refer to the error buffer for details. ', '17'=>'An error was received when trying to set the transfer mode to binary or ASCII.', '18'=>'The file transfer is shorter or larger than expected. This happens when the server first reports the expected transfer size and then passes data that does not match the previously given size. ', '19'=>'This is a strange reply to the 'RETR ' command or the completion of zero byte transfer. ', '21'=>'When sending the custom 'QUOTE ' command to the remote server, one of the commands returned an error code of 400 or higher (for FTP), or otherwise indicated that the command did not complete successfully. ', '22'=>'This value is returned if CURLOPT_FAILONERROR is set to TRUE and the HTTP server returns an error code of>=400.', '23'=>'An error occurred while writing the received data to the local file, or the error is returned to libcurl from the write callback.', '25'=>'Failed to start uploading. For FTP, the server usually rejects the STOR command. The error buffer usually contains the server's interpretation of this. ', '26'=>'There was a problem reading the local file or the read callback returned an error.', '27'=>'Memory allocation request failed. This is a serious bad situation. If this happens, things will be seriously damaged. ', '28'=>'Operation timeout. The specified timeout period is reached according to the conditions. ', '30'=>'The FTP PORT command returned an error. This usually happens when you do not specify a good enough address for libcurl to use. See CURLOPT_FTPPORT. ', '31'=>'The FTP REST command returned an error. This should never happen if the server is healthy. ', '33'=>'The server does not support or accept range requests.', '34'=>'This is a strange error, mainly due to internal confusion.', '35'=>'A problem occurred in the SSL/TLS handshake. You really need the error buffer and read the message there, because it pinpoints the problem slightly. It may be the certificate (file format, path, permission), password, etc. ', '36'=>'The download cannot be recovered because the specified offset exceeds the file boundary.', '37'=>'The file given with file://cannot be opened. This is most likely because the file path does not recognize an existing file. Do you check the file permissions? ', '38'=>'LDAP cannot be bound. LDAP bind operation failed. ', '39'=>'LDAP search failed.', '41'=>'Function not found. The required zlib function could not be found. ', '42'=>'Callback aborted. The callback function returns 'abort  'to libcurl.', '43'=>'Internal error. A function was called with an incorrect parameter. ', '45'=>'Interface error. The specified outgoing interface cannot be used. Use CURLOPT_INTERFACE to set which interface the source IP address of outgoing connection uses. ', '47'=>'Too many redirects. When following redirection, libcurl reaches the maximum. Use CURLOPT_MAXREDIRS to set your limits. ', '48'=>'The option passed to libcurl is unrecognized/known. Refer to the appropriate documentation. This is probably a problem in programs that use libcurl. The error buffer may contain more specific information about which exact option. ', '49'=>'A telnet option string was formatted illegally.', '51'=>'The SSL certificate or SSH md5 fingerprint of the remote server is considered incorrect.', '52'=>'Nothing is returned from the server, and in this case, nothing is considered an error.', '53'=>'The specified encryption engine was not found.', '54'=>'The selected SSL encryption engine cannot be set as the default value!', '55'=>'Failed to send network data.', '56'=>'Failed to receive network data.', '58'=>'Problems related to local client certificates.', '59'=>'The specified password cannot be used.', '60'=>'Peer certificates cannot be authenticated with known CA certificates.', '61'=>'Unrecognized transmission code.', '62'=>'Invalid LDAP web address.', '63'=>'The maximum file size is exceeded.', '64'=>'The requested FTP SSL level failed.', '65'=>'When sending, the cURL had to rewind the data to retransmit, but the rewind operation failed.', '66'=>'Failed to start the SSL engine.', '67'=>'Remote server rejects cURL login (added in 7.13.1)', '68'=>'File not found on TFTP server.', '69'=>'Permission problem on the TFTP server.', '70'=>'Insufficient disk space on the server.', '71'=>'Illegal TFTP operation.', '72'=>'Unknown TFTP transport identity.', '73'=>'The file already exists and will not be overwritten.', '74'=>'This error should not be returned by the normal TFTP server.', '75'=>'Character conversion failed.', '76'=>'The caller must register a conversion callback.', '77'=>'There is a problem reading the SSL CA certificate (path access permission?)', '78'=>'The resource referenced in the URL does not exist.', '79'=>'An unspecified error occurred during the SSH session.', '80'=>'Unable to close SSL connection.', '81'=>'The socket is not ready to send/receive wait until it is ready, and then try again. This return code is only returned from curl_easy_recv and curl_easy_send (added in 7.18.2) ', '82'=>'Unable to load CRL file (added in 7.19.0)', '83'=>'Issuer check failed (added in 7.19.0)', '84'=>'The FTP server does not understand the PRET command at all, or does not support the given parameters. Be careful when using CURLOPT_CUSTOMREQUEST. The custom LIST command will also be sent using PRET CMD before PASV. (Added in 7.20.0) ', '85'=>'RTSP CSeq digits do not match.', '86'=>'RTSP session identifiers do not match.', '87'=>'Unable to parse the FTP file list (during FTP wildcard download).', '88'=>'The block callback reported an error.', '89'=>'(only for internal use, not returned by libcurl) There is no available connection, and the session will be queued. (Added in 7.30.0) ', '90'=>'The fixed key specified with CURLOPT_PINNEDPUBLICKEY cannot be matched.', '91'=>'When asked by CURLOPT_SSL_VERIFYSTATUS, the status returns failure.', '92'=>'Stream error in HTTP/2 framing layer.', '93'=>'An API function was called in the callback.' ); $error_codes = array( '0' => 'CURLE_OK', '1' => 'CURLE_UNSUPPORTED_PROTOCOL', '2' => 'CURLE_FAILED_INIT', '3' => 'CURLE_URL_MALFORMAT', '4' => 'CURLE_URL_MALFORMAT_USER', '5' => 'CURLE_COULDNT_RESOLVE_PROXY', '6' => 'CURLE_COULDNT_RESOLVE_HOST', '7' => 'CURLE_COULDNT_CONNECT', '8' => 'CURLE_FTP_WEIRD_SERVER_REPLY', '9' => 'CURLE_REMOTE_ACCESS_DENIED', '11' => 'CURLE_FTP_WEIRD_PASS_REPLY', '13' => 'CURLE_FTP_WEIRD_PASV_REPLY', '14'=>'CURLE_FTP_WEIRD_227_FORMAT', '15' => 'CURLE_FTP_CANT_GET_HOST', '17' => 'CURLE_FTP_COULDNT_SET_TYPE', '18' => 'CURLE_PARTIAL_FILE', '19' => 'CURLE_FTP_COULDNT_RETR_FILE', '21' => 'CURLE_QUOTE_ERROR', '22' => 'CURLE_HTTP_RETURNED_ERROR', '23' => 'CURLE_WRITE_ERROR', '25' => 'CURLE_UPLOAD_FAILED', '26' => 'CURLE_READ_ERROR', '27' => 'CURLE_OUT_OF_MEMORY', '28' => 'CURLE_OPERATION_TIMEDOUT', '30' => 'CURLE_FTP_PORT_FAILED', '31' => 'CURLE_FTP_COULDNT_USE_REST', '33' => 'CURLE_RANGE_ERROR', '34' => 'CURLE_HTTP_POST_ERROR', '35' => 'CURLE_SSL_CONNECT_ERROR', '36' => 'CURLE_BAD_DOWNLOAD_RESUME', '37' => 'CURLE_FILE_COULDNT_READ_FILE', '38' => 'CURLE_LDAP_CANNOT_BIND', '39' => 'CURLE_LDAP_SEARCH_FAILED', '41' => 'CURLE_FUNCTION_NOT_FOUND', '42' => 'CURLE_ABORTED_BY_CALLBACK', '43' => 'CURLE_BAD_FUNCTION_ARGUMENT', '45' => 'CURLE_INTERFACE_FAILED', '47' => 'CURLE_TOO_MANY_REDIRECTS', '48' => 'CURLE_UNKNOWN_TELNET_OPTION', '49' => 'CURLE_TELNET_OPTION_SYNTAX', '51' => 'CURLE_PEER_FAILED_VERIFICATION', '52' => 'CURLE_GOT_NOTHING', '53' => 'CURLE_SSL_ENGINE_NOTFOUND', '54' => 'CURLE_SSL_ENGINE_SETFAILED', '55' => 'CURLE_SEND_ERROR', '56' => 'CURLE_RECV_ERROR', '58' => 'CURLE_SSL_CERTPROBLEM', '59' => 'CURLE_SSL_CIPHER', '60' => 'CURLE_SSL_CACERT', '61' => 'CURLE_BAD_CONTENT_ENCODING', '62' => 'CURLE_LDAP_INVALID_URL', '63' => 'CURLE_FILESIZE_EXCEEDED', '64' => 'CURLE_USE_SSL_FAILED', '65' => 'CURLE_SEND_FAIL_REWIND', '66' => 'CURLE_SSL_ENGINE_INITFAILED', '67' => 'CURLE_LOGIN_DENIED', '68' => 'CURLE_TFTP_NOTFOUND', '69' => 'CURLE_TFTP_PERM', '70' => 'CURLE_REMOTE_DISK_FULL', '71' => 'CURLE_TFTP_ILLEGAL', '72' => 'CURLE_TFTP_UNKNOWNID', '73' => 'CURLE_REMOTE_FILE_EXISTS', '74' => 'CURLE_TFTP_NOSUCHUSER', '75' => 'CURLE_CONV_FAILED', '76' => 'CURLE_CONV_REQD', '77' => 'CURLE_SSL_CACERT_BADFILE', '78' => 'CURLE_REMOTE_FILE_NOT_FOUND', '79' => 'CURLE_SSH', '80' => 'CURLE_SSL_SHUTDOWN_FAILED', '81' => 'CURLE_AGAIN', '82' => 'CURLE_SSL_CRL_BADFILE', '83' => 'CURLE_SSL_ISSUER_ERROR', '84' => 'CURLE_FTP_PRET_FAILED', '84' => 'CURLE_FTP_PRET_FAILED', '85' => 'CURLE_RTSP_CSEQ_ERROR', '86' => 'CURLE_RTSP_SESSION_ERROR', '87' => 'CURLE_FTP_BAD_FILE_LIST', '88' => 'CURLE_CHUNK_FAILED', '89' => 'CURLE_NO_CONNECTION_AVAILABLE', '90' => 'CURLE_SSL_PINNEDPUBKEYNOTMATCH', '91' => 'CURLE_SSL_INVALIDCERTSTATUS', '92' => 'CURLE_HTTP2_STREAM', '93' => 'CURLE_RECURSIVE_API_CALL' );

PHP cURL error instance


-Read the rest-

ping

Verify an IP level connection to another TCP/IP computer by sending an Internet Control Message Protocol (ICMP) response request message. Display the receiving and round trip time of the corresponding echo response message. Ping is the main TCP/IP command used to solve connectivity, accessibility and name resolution problems. If no parameter is used, ping will display help.

be careful:

Applicable to

  • Windows xp、7、8、9

grammar

 ping [/t] [/a] [/n <Count>] [/l <Size>] [/f] [/I <TTL>] [/v <TOS>] [/r <Count>] [/s <Count>] [{/j <Hostlist> | /k <Hostlist>}] [/w <timeout>] [/R] [/S <Srcaddr>] [/4] [/6] <TargetName>

-Read the rest-