当前位置:网站首页>Libcurl returns curlcode description
Libcurl returns curlcode description
2022-07-07 06:58:00 【Studying hard】
from PHP CURL_ERRNO 77( Sample code )_136.la
libcurl Error code
name
libcurl-errors - libcurl Error code in
describe
This album contains libcurl Most of them ( If not all ) Available error codes . Why do they happen , It may also include solutions to problems .
CURLcode
Almost all “ Simple ” Interface functions return CURLcode Error code . in any case , Use curl_easy_setopt Options CURLOPT_ERRORBUFFER It's a good idea , Because it will provide you with a human readable error string , You can provide more details about the cause of the error , Not just error codes . You can call curl_easy_strerror From the given CURLcode Get the error string in the number .
CURLcode Is one of the following :
CURLE_OK(0)
Everything is fine . Continue as usual .
CURLE_UNSUPPORTED_PROTOCOL(1)
You pass to libcurl Of URL Used this libcurl Protocol not supported . Support may be compile time options that you do not use , It may be a misspelled protocol string , Or just libcurl Agreement without code .
CURLE_FAILED_INIT(2)
The early initialization code failed . It could be an internal error or a problem , Or the resource problem that cannot complete some basic operations at the beginning .
CURLE_URL_MALFORMAT(3)
URL Incorrect format .
CURLE_NOT_BUILT_IN(4)
Because it was decided at build time , Not here libcurl Find the requested function , Agreement or option . This means building libcurl A function or option is not enabled or explicitly disabled , And in order to make it work properly , You must get rebuilt libcurl.
CURLE_COULDNT_RESOLVE_PROXY(5)
Unable to resolve agent . Unable to resolve the given proxy host .
CURLE_COULDNT_RESOLVE_HOST(6)
Unable to resolve host . The given remote host was not resolved .
CURLE_COULDNT_CONNECT(7)
Unable to connect () To the host or agent .
CURLE_FTP_WEIRD_SERVER_REPLY(8)
Data sent by the server libcurl Unable to resolve . This error code is not only used for FTP, And self 7.51.0 Alias as CURLE_WEIRD_SERVER_REPLY.
CURLE_REMOTE_ACCESS_DENIED(9)
We were denied access URL Resources given in . about FTP, This happens when you try to change to a remote directory .
CURLE_FTP_ACCEPT_FAILED(10)
Using activities FTP Wait for the server to connect back during the session , Send the error code through the control connection or similar .
CURLE_FTP_WEIRD_PASS_REPLY(11)
Will be FTP After the password is sent to the server ,libcurl Hope to get an appropriate reply . This error code indicates that an unexpected code was returned .
CURLE_FTP_ACCEPT_TIMEOUT(12)
Waiting for the server to connect FTP During the conversation ,CURLOPT_ACCEPTTIMEOUT_MS( Or internal default ) The timeout has expired .
CURLE_FTP_WEIRD_PASV_REPLY(13)
libcurl Unable to get reasonable results from the server as a pair PASV or EPSV Command response . The server is defective .
CURLE_FTP_WEIRD_227_FORMAT(14)
FTP Server return 227 OK, as right PASV Command response . If libcurl Unable to parse this line , Then return this return code .
CURLE_FTP_CANT_GET_HOST(15)
Find the internal fault of the host used for the new connection .
CURLE_HTTP2(16)
stay HTTP2 Problems detected in the framework layer . This is somewhat generic , It may be one of several problems , See error buffer for details .
CURLE_FTP_COULDNT_SET_TYPE(17)
Try setting the transfer mode to binary or ASCII Received an error when .
CURLE_PARTIAL_FILE(18)
File transfers are shorter or longer than expected . When the server first reports the expected transfer size , Then when passing data that does not match the previously given size , This will happen .
CURLE_FTP_COULDNT_RETR_FILE(19)
This may be true ‘RETR‘ Strange reply to the order , It may also be the completion of zero byte transmission .
CURLE_QUOTE_ERROR(21)
Send custom to remote server “QUOTE” On command , One of the commands returned an error code of 400 Or higher ( about FTP) Or in other ways, it indicates that the command did not complete successfully .
CURLE_HTTP_RETURNED_ERROR(22)
If CURLOPT_FAILONERROR Set to TRUE And HTTP Server return > = 400 Error code for , Then return this value .
CURLE_WRITE_ERROR(23)
An error occurred while writing the received data to the local file , Or return the error from the write callback to libcurl.
CURLE_UPLOAD_FAILED(25)
Failed to start upload . about FTP, The server usually refuses STOR command . The error buffer usually contains the server's explanation for this .
CURLE_READ_ERROR(26)
There was a problem reading the local file or reading the error returned by the callback .
CURLE_OUT_OF_MEMORY(27)
Memory allocation request failed . This is a serious bad thing , If this happens , Things will be seriously messed up .
CURLE_OPERATION_TIMEDOUT(28)
Operation timeout . The specified timeout time is reached according to the conditions .
CURLE_FTP_PORT_FAILED(30)
FTP PORT Command return error . When you are not for libcurl When specifying a good enough address , This usually happens . Please see the CURLOPT_FTPPORT.
CURLE_FTP_COULDNT_USE_REST(31)
FTP REST Command return error . If the server is rational , This should never happen .
CURLE_RANGE_ERROR(33)
The server does not support or accept range requests .
CURLE_HTTP_POST_ERROR(34)
It's a strange mistake , Mainly due to internal chaos .
CURLE_SSL_CONNECT_ERROR(35)
SSL / TLS There is a problem in the handshake . You really want the error buffer and read the message there , Because it will find out the problem slightly . It could be a certificate ( File format , route , jurisdiction ), Password etc. .
CURLE_BAD_DOWNLOAD_RESUME(36)
Unable to resume download , Because the specified offset exceeds the file boundary .
CURLE_FILE_COULDNT_READ_FILE(37)
Cannot open to FILE:// Specified file . Probably because the file path cannot recognize the existing file . Have you checked the file permissions ?
CURLE_LDAP_CANNOT_BIND(38)
LDAP Can't bind .LDAP Binding operation failed .
CURLE_LDAP_SEARCH_FAILED(39)
LDAP Search failed .
CURLE_FUNCTION_NOT_FOUND(41)
Function not found . Can't find what you need zlib function .
CURLE_ABORTED_BY_CALLBACK(42)
Aborted by callback . Callback “abort” return libcurl.
CURLE_BAD_FUNCTION_ARGUMENT(43)
internal error . Call function with wrong parameters .
CURLE_INTERFACE_FAILED(45)
Interface error . Unable to use the specified outgoing interface . Use CURLOPT_INTERFACE Set the source for outgoing connections IP Address interface .
CURLE_TOO_MANY_REDIRECTS(47)
Too many redirects . After performing the reset ,libcurl Will reach the maximum . Use CURLOPT_MAXREDIRS Set limits .
CURLE_UNKNOWN_OPTION(48)
Pass to libcurl The option of is not recognized / It is known that . Please refer to the corresponding documentation . This is probably using libcurl A problem in the program of . The error buffer may contain more specific information about the exact options it involves .
CURLE_TELNET_OPTION_SYNTAX(49)
telnet The option string is illegally formatted .
CURLE_GOT_NOTHING(52)
Nothing is returned from the server , under these circumstances , Nothing is considered wrong .
CURLE_SSL_ENGINE_NOTFOUND(53)
The specified encryption engine could not be found .
CURLE_SSL_ENGINE_SETFAILED(54)
Move the selected SSL Failed to set the encryption engine to the default value !
CURLE_SEND_ERROR(55)
Failed to send network data .
CURLE_RECV_ERROR(56)
Failed to receive network data .
CURLE_SSL_CERTPROBLEM(58)
Problem with local client certificate .
CURLE_SSL_CIPHER(59)
Unable to use the specified password .
CURLE_PEER_FAILED_VERIFICATION(60)
Remote server SSL Certificate or SSH md5 Fingerprints are considered abnormal . since 7.62.0 rise , This error code has been associated with CURLE_SSL_CACERT Unified . Its previous value was 51.
CURLE_BAD_CONTENT_ENCODING(61)
Unrecognized transmission code .
CURLE_LDAP_INVALID_URL(62)
invalid LDAP URL.
CURLE_FILESIZE_EXCEEDED(63)
Maximum file size exceeded .
CURLE_USE_SSL_FAILED(64)
Requested FTP SSL Level failed .
CURLE_SEND_FAIL_REWIND(65)
When performing the send operation ,curl Data must be rolled back to retransmit , But the rewind operation failed .
CURLE_SSL_ENGINE_INITFAILED(66)
start-up SSL The engine failed .
CURLE_LOGIN_DENIED(67)
The remote server refused curl Sign in ( stay 7.13.1 Add )
CURLE_TFTP_NOTFOUND(68)
stay TFTP File not found on server .
CURLE_TFTP_PERM(69)
TFTP Permission issues on the server .
CURLE_REMOTE_DISK_FULL(70)
There is not enough disk space on the server .
CURLE_TFTP_ILLEGAL(71)
Illegal TFTP operation .
CURLE_TFTP_UNKNOWNID(72)
Unknown TFTP transmission ID.
CURLE_REMOTE_FILE_EXISTS(73)
The file already exists and will not be overwritten .
CURLE_TFTP_NOSUCHUSER(74)
In normal operation TFTP The server should never return this error .
CURLE_CONV_FAILED(75)
Character conversion failed .
CURLE_CONV_REQD(76)
Callers must register conversion callbacks .
CURLE_SSL_CACERT_BADFILE(77)
Read SSL CA There was a problem with the certificate ( route ? Access right ?)
CURLE_REMOTE_FILE_NOT_FOUND(78)
URL The resource referenced in does not exist .
CURLE_SSH(79)
SSH An unspecified error occurred during the session .
CURLE_SSL_SHUTDOWN_FAILED(80)
Unable to close SSL Connect .
CURLE_AGAIN(81)
The socket is not ready to send / Reception waiting , Until it's ready to try again . This return code is only from curl_easy_recv and curl_easy_send return ( stay 7.18.2 Add )
CURLE_SSL_CRL_BADFILE(82)
Unable to load CRL file ( stay 7.19.0 Add )
CURLE_SSL_ISSUER_ERROR(83)
Issuer check failed ( stay 7.19.0 Add )
CURLE_FTP_PRET_FAILED(84)
FTP The server doesn't understand PRET Command or does not support the given parameter . Use CURLOPT_CUSTOMREQUEST Be careful , stay PASV I also used PRET CMD Send custom LIST command .( stay 7.20.0 Add )
CURLE_RTSP_CSEQ_ERROR(85)
RTSP CSeq The numbers don't match .
CURLE_RTSP_SESSION_ERROR(86)
RTSP Session identifier mismatch .
CURLE_FTP_BAD_FILE_LIST(87)
Unable to resolve FTP File list ( stay FTP During wildcard download ).
CURLE_CHUNK_FAILED(88)
The block callback reported an error .
CURLE_NO_CONNECTION_AVAILABLE(89)
( For internal use only ,libcurl Never to return ) No connection available , The session will be queued .( stay 7.30.0 Add )
CURLE_SSL_PINNEDPUBKEYNOTMATCH(90)
Can't match CURLOPT_PINNEDPUBLICKEY Specified fixed key .
CURLE_SSL_INVALIDCERTSTATUS(91)
When asked CURLOPT_SSL_VERIFYSTATUS when , Status return failed .
CURLE_HTTP2_STREAM(92)
HTTP / 2 Stream error in framing layer .
CURLE_RECURSIVE_API_CALL(93)
Call from within the callback API function .
CURLE_OBSOLETE *
These error codes will never be returned . They are in the old libcurl Used in version , Not yet in use .
CURLMcode
This is a libcurl General return code used by functions in multiple interfaces . Also need to consider curl_multi_strerror.
CURLM_CALL_MULTI_PERFORM(-1)
This is not a real mistake . This means that you should call again curl_multi_perform, Not in between select() Or similar operation . In version 7.20.0 Before , This can be done by curl_multi_perform return , But in later versions , This return code is never used .
CURLM_OK(0)
Things are good .
CURLM_BAD_HANDLE(1)
The handle passed in is not valid CURLM Handle .
CURLM_BAD_EASY_HANDLE(2)
Easy to handle, bad / It works . This may mean that it is not a simple handle at all , Or maybe the handle has been used by this or another multi handle .
CURLM_OUT_OF_MEMORY(3)
You are doomed to failure .
CURLM_INTERNAL_ERROR(4)
This can only be done in libcurl Error . Please report to us !
CURLM_BAD_SOCKET(5)
The socket passed in is not libcurl Known valid sockets .( stay 7.15.4 Add )
CURLM_UNKNOWN_OPTION(6)
curl_multi_setopt() With unsupported options ( stay 7.15.4 Add )
CURLM_ADDED_ALREADY(7)
Tried to add the simple handle to the multi handle for the second time .( stay 7.32.1 Add )
CURLM_RECURSIVE_API_CALL(8)
Call from within the callback API function .
CURLSHcode
“share” The interface will return CURLSHcode To indicate when an error occurred . Also need to consider curl_share_strerror.
CURLSHE_OK(0)
Everything is fine . Continue as usual .
CURLSHE_BAD_OPTION(1)
Invalid option passed to function .
CURLSHE_IN_USE(2)
The shared object is currently in use .
CURLSHE_INVALID(3)
An invalid shared object was passed to the function .
CURLSHE_NOMEM(4)
Not enough memory available .( stay 7.12.0 Add )
CURLSHE_NOT_BUILT_IN(5)
Unable to perform the requested share , Because the library you are using does not enable this specific feature .( stay 7.23.0 Add )
CURLUcode
CURLUE_BAD_HANDLE(1)
Should be CURLU The parameters of the pointer are NULL Pass in .
CURLUE_BAD_PARTPOINTER(2)
NULL The pointer is passed to curl_url_get Of ‘part‘ Parameters .
CURLUE_MALFORMED_INPUT(3)
Malformed input is passed to URL API function .
CURLUE_BAD_PORT_NUMBER(4)
The port number is not 0 To 65535 The decimal number between .
CURLUE_UNSUPPORTED_SCHEME(5)
this libcurl Build does not support the given URL programme .
CURLUE_URLDECODE(6)
URL The decoding error , Probably because there is garbage in the input .
CURLUE_OUT_OF_MEMORY(7)
Memory failure .
CURLUE_USER_NOT_ALLOWED(8)
When prohibited , Credentials in URL In the transfer .
CURLUE_UNKNOWN_PART(9)
Unknown part ID Has been passed to URL API function .
CURLUE_NO_SCHEME(10)
URL There is no scheme part in .
CURLUE_NO_USER(11)
URL There is no user part in .
CURLUE_NO_PASSWORD(12)
URL There is no password part in .
CURLUE_NO_OPTIONS(13)
URL There is no option section in .
CURLUE_NO_HOST(14)
URL There is no host part in .
CURLUE_NO_PORT(15)
URL There is no port part in .
CURLUE_NO_QUERY(16)
URL There is no query part in .
CURLUE_NO_FRAGMENT(17)
URL There is no segment in
边栏推荐
猜你喜欢
Matlab tips (29) polynomial fitting plotfit
品牌·咨询标准化
JDBC database connection pool usage problem
学术报告系列(六) - Autonomous Driving on the journey to full autonomy
MySQL installation
Comment les entreprises gèrent - elles les données? Partager les leçons tirées des quatre aspects de la gouvernance des données
带你刷(牛客网)C语言百题(第一天)
场馆怎么做体育培训?
The latest trends of data asset management and data security at home and abroad
Learning notes | data Xiaobai uses dataease to make a large data screen
随机推荐
Take you to brush (niuke.com) C language hundred questions (the first day)
基于JS的迷宫小游戏
2018年江苏省职业院校技能大赛高职组“信息安全管理与评估”赛项任务书第二阶段答案
Prime partner of Huawei machine test questions
Basic DOS commands
Unable to debug screen program with serial port
Linear algebra (1)
【NOI模拟赛】区域划分(结论,构造)
多学科融合
Install mongodb database
From zero to one, I will teach you to build the "clip search by text" search service (2): 5 minutes to realize the prototype
Please ask a question, flick Oracle CDC, read a table without update operation, and repeatedly read the full amount of data every ten seconds
from . onnxruntime_ pybind11_ State Import * noqa ddddocr operation error
Programmers' daily | daily anecdotes
dolphinscheduler3. X local startup
带你刷(牛客网)C语言百题(第一天)
2022/07/04学习记录
Matlab tips (29) polynomial fitting plotfit
Leetcode T1165: 日志分析
Installing redis and windows extension method under win system