Created
January 19, 2022 12:22
-
-
Save nono303/de1256f55e26fdbcc3e0d72e397ac4a1 to your computer and use it in GitHub Desktop.
PHP CURLcode
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// V7.81 \curl\include\curl\curl.h l.495 | |
define("CURLcode",[ | |
0 => "CURLE_OK", | |
1 => "CURLE_UNSUPPORTED_PROTOCOL", | |
2 => "CURLE_FAILED_INIT", | |
3 => "CURLE_URL_MALFORMAT", | |
4 => "CURLE_NOT_BUILT_IN", // [was obsoleted in August 2007 for 7.17.0, reused in April 2011 for 7.21.5] | |
5 => "CURLE_COULDNT_RESOLVE_PROXY", | |
6 => "CURLE_COULDNT_RESOLVE_HOST", | |
7 => "CURLE_COULDNT_CONNECT", | |
8 => "CURLE_WEIRD_SERVER_REPLY", | |
9 => "CURLE_REMOTE_ACCESS_DENIED", // a service was denied by the server due to lack of access - when login fails this is not returned. | |
10 => "CURLE_FTP_ACCEPT_FAILED", // [was obsoleted in April 2006 for 7.15.4, reused in Dec 2011 for 7.24.0]*/ | |
11 => "CURLE_FTP_WEIRD_PASS_REPLY", | |
12 => "CURLE_FTP_ACCEPT_TIMEOUT", // timeout occurred accepting server [was obsoleted in August 2007 for 7.17.0, reused in Dec 2011 for 7.24.0]*/ | |
13 => "CURLE_FTP_WEIRD_PASV_REPLY", | |
14 => "CURLE_FTP_WEIRD_227_FORMAT", | |
15 => "CURLE_FTP_CANT_GET_HOST", | |
16 => "CURLE_HTTP2", // A problem in the http2 framing layer. [was obsoleted in August 2007 for 7.17.0, reused in July 2014 for 7.38.0] | |
17 => "CURLE_FTP_COULDNT_SET_TYPE", | |
18 => "CURLE_PARTIAL_FILE", | |
19 => "CURLE_FTP_COULDNT_RETR_FILE", | |
20 => "CURLE_OBSOLETE20", // NOT USED | |
21 => "CURLE_QUOTE_ERROR", // quote command failure | |
22 => "CURLE_HTTP_RETURNED_ERROR", | |
23 => "CURLE_WRITE_ERROR", | |
24 => "CURLE_OBSOLETE24", // NOT USED | |
25 => "CURLE_UPLOAD_FAILED", // failed upload "command" | |
26 => "CURLE_READ_ERROR", // couldn't open/read from file | |
27 => "CURLE_OUT_OF_MEMORY", // Note: CURLE_OUT_OF_MEMORY may sometimes indicate a conversion error instead of a memory allocation error if CURL_DOES_CONVERSIONS is defined | |
28 => "CURLE_OPERATION_TIMEDOUT", // the timeout time was reached | |
29 => "CURLE_OBSOLETE29", // NOT USED | |
30 => "CURLE_FTP_PORT_FAILED", // FTP PORT operation failed | |
31 => "CURLE_FTP_COULDNT_USE_REST", // the REST command failed | |
32 => "CURLE_OBSOLETE32", // NOT USED | |
33 => "CURLE_RANGE_ERROR", // RANGE "command" didn't work | |
34 => "CURLE_HTTP_POST_ERROR", | |
35 => "CURLE_SSL_CONNECT_ERROR", // wrong when connecting with SSL | |
36 => "CURLE_BAD_DOWNLOAD_RESUME", // couldn't resume download | |
37 => "CURLE_FILE_COULDNT_READ_FILE", | |
38 => "CURLE_LDAP_CANNOT_BIND", | |
39 => "CURLE_LDAP_SEARCH_FAILED", | |
40 => "CURLE_OBSOLETE40", // NOT USED | |
41 => "CURLE_FUNCTION_NOT_FOUND", // NOT USED starting with 7.53.0 | |
42 => "CURLE_ABORTED_BY_CALLBACK", | |
43 => "CURLE_BAD_FUNCTION_ARGUMENT", | |
44 => "CURLE_OBSOLETE44", // NOT USED | |
45 => "CURLE_INTERFACE_FAILED", // CURLOPT_INTERFACE failed | |
46 => "CURLE_OBSOLETE46", // NOT USED | |
47 => "CURLE_TOO_MANY_REDIRECTS", // catch endless re-direct loops | |
48 => "CURLE_UNKNOWN_OPTION", // User specified an unknown option | |
49 => "CURLE_SETOPT_OPTION_SYNTAX", // Malformed setopt option | |
50 => "CURLE_OBSOLETE50", // NOT USED | |
51 => "CURLE_OBSOLETE51", // NOT USED | |
52 => "CURLE_GOT_NOTHING", // when this is a specific error | |
53 => "CURLE_SSL_ENGINE_NOTFOUND", // SSL crypto engine not found | |
54 => "CURLE_SSL_ENGINE_SETFAILED", // can not set SSL crypto engine as default | |
55 => "CURLE_SEND_ERROR", // failed sending network data | |
56 => "CURLE_RECV_ERROR", // failure in receiving network data | |
57 => "CURLE_OBSOLETE57", // NOT IN USE | |
58 => "CURLE_SSL_CERTPROBLEM", // problem with the local certificate | |
59 => "CURLE_SSL_CIPHER", // couldn't use specified cipher | |
60 => "CURLE_PEER_FAILED_VERIFICATION", // peer's certificate or fingerprint wasn't verified fine | |
61 => "CURLE_BAD_CONTENT_ENCODING", // Unrecognized/bad encoding | |
62 => "CURLE_LDAP_INVALID_URL", // Invalid LDAP URL | |
63 => "CURLE_FILESIZE_EXCEEDED", // Maximum file size exceeded | |
64 => "CURLE_USE_SSL_FAILED", // Requested FTP SSL level failed | |
65 => "CURLE_SEND_FAIL_REWIND", // Sending the data requires a rewind that failed | |
66 => "CURLE_SSL_ENGINE_INITFAILED", // failed to initialise ENGINE | |
67 => "CURLE_LOGIN_DENIED", // user, password or similar was not accepted and we failed to login | |
68 => "CURLE_TFTP_NOTFOUND", // file not found on server | |
69 => "CURLE_TFTP_PERM", // permission problem on server | |
70 => "CURLE_REMOTE_DISK_FULL", // out of disk space on server | |
71 => "CURLE_TFTP_ILLEGAL", // Illegal TFTP operation | |
72 => "CURLE_TFTP_UNKNOWNID", // Unknown transfer ID | |
73 => "CURLE_REMOTE_FILE_EXISTS", // File already exists | |
74 => "CURLE_TFTP_NOSUCHUSER", // No such user | |
75 => "CURLE_CONV_FAILED", // conversion failed | |
76 => "CURLE_CONV_REQD", // caller must register conversion callbacks using curl_easy_setopt options CURLOPT_CONV_FROM_NETWORK_FUNCTION, CURLOPT_CONV_TO_NETWORK_FUNCTION, and CURLOPT_CONV_FROM_UTF8_FUNCTION | |
77 => "CURLE_SSL_CACERT_BADFILE", // could not load CACERT file, missing or wrong format | |
78 => "CURLE_REMOTE_FILE_NOT_FOUND", // remote file not found | |
79 => "CURLE_SSH", // error from the SSH layer, somewhat generic so the error message will be of interest when this has happened | |
80 => "CURLE_SSL_SHUTDOWN_FAILED", // Failed to shut down the SSL connection | |
81 => "CURLE_AGAIN", // socket is not ready for send/recv, wait till it's ready and try again (Added in 7.18.2) | |
82 => "CURLE_SSL_CRL_BADFILE", // could not load CRL file, missing or wrong format (Added in 7.19.0) | |
83 => "CURLE_SSL_ISSUER_ERROR", // Issuer check failed. (Added in 7.19.0) | |
84 => "CURLE_FTP_PRET_FAILED", // a PRET command failed | |
85 => "CURLE_RTSP_CSEQ_ERROR", // mismatch of RTSP CSeq numbers | |
86 => "CURLE_RTSP_SESSION_ERROR", // mismatch of RTSP Session Ids | |
87 => "CURLE_FTP_BAD_FILE_LIST", // unable to parse FTP file list | |
88 => "CURLE_CHUNK_FAILED", // chunk callback reported error | |
89 => "CURLE_NO_CONNECTION_AVAILABLE", // No connection available, the session will be queued | |
90 => "CURLE_SSL_PINNEDPUBKEYNOTMATCH", // specified pinned public key did not match | |
91 => "CURLE_SSL_INVALIDCERTSTATUS", // invalid certificate status | |
92 => "CURLE_HTTP2_STREAM", // stream error in HTTP/2 framing layer | |
93 => "CURLE_RECURSIVE_API_CALL", // an api function was called from inside a callback | |
94 => "CURLE_AUTH_ERROR", // an authentication function returned an error | |
95 => "CURLE_HTTP3", // An HTTP/3 layer problem | |
96 => "CURLE_QUIC_CONNECT_ERROR", // QUIC connection error | |
97 => "CURLE_PROXY", // proxy handshake error | |
98 => "CURLE_SSL_CLIENTCERT", // client-side certificate required | |
]); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment