文档章节

libcurl CURLcode

元禛慎独
 元禛慎独
发布于 2016/11/25 10:19
字数 494
阅读 8
收藏 0
    CURLE_OK = 0,
    CURLE_UNSUPPORTED_PROTOCOL, /* 1 */
    CURLE_FAILED_INIT, /* 2 */
    CURLE_URL_MALFORMAT, /* 3 */
    CURLE_OBSOLETE4, /* 4 - NOT USED */
    CURLE_COULDNT_RESOLVE_PROXY, /* 5 */
    CURLE_COULDNT_RESOLVE_HOST, /* 6 */
    CURLE_COULDNT_CONNECT, /* 7 */
    CURLE_FTP_WEIRD_SERVER_REPLY, /* 8 */
    CURLE_REMOTE_ACCESS_DENIED, /* 9 a service was denied by the server
                                        due to lack of access - when login fails
                                        this is not returned. */
    CURLE_OBSOLETE10, /* 10 - NOT USED */
    CURLE_FTP_WEIRD_PASS_REPLY, /* 11 */
    CURLE_OBSOLETE12, /* 12 - NOT USED */
    CURLE_FTP_WEIRD_PASV_REPLY, /* 13 */
    CURLE_FTP_WEIRD_227_FORMAT, /* 14 */
    CURLE_FTP_CANT_GET_HOST, /* 15 */
    CURLE_OBSOLETE16, /* 16 - NOT USED */
    CURLE_FTP_COULDNT_SET_TYPE, /* 17 */
    CURLE_PARTIAL_FILE, /* 18 */
    CURLE_FTP_COULDNT_RETR_FILE, /* 19 */
    CURLE_OBSOLETE20, /* 20 - NOT USED */
    CURLE_QUOTE_ERROR, /* 21 - quote command failure */
    CURLE_HTTP_RETURNED_ERROR, /* 22 */
    CURLE_WRITE_ERROR, /* 23 */
    CURLE_OBSOLETE24, /* 24 - NOT USED */
    CURLE_UPLOAD_FAILED, /* 25 - failed upload "command" */
    CURLE_READ_ERROR, /* 26 - couldn't open/read from file */
    CURLE_OUT_OF_MEMORY, /* 27 */
    /* Note: CURLE_OUT_OF_MEMORY may sometimes indicate a conversion error
               instead of a memory allocation error if CURL_DOES_CONVERSIONS
               is defined
      */
    CURLE_OPERATION_TIMEDOUT, /* 28 - the timeout time was reached */
    CURLE_OBSOLETE29, /* 29 - NOT USED */
    CURLE_FTP_PORT_FAILED, /* 30 - FTP PORT operation failed */
    CURLE_FTP_COULDNT_USE_REST, /* 31 - the REST command failed */
    CURLE_OBSOLETE32, /* 32 - NOT USED */
    CURLE_RANGE_ERROR, /* 33 - RANGE "command" didn't work */
    CURLE_HTTP_POST_ERROR, /* 34 */
    CURLE_SSL_CONNECT_ERROR, /* 35 - wrong when connecting with SSL */
    CURLE_BAD_DOWNLOAD_RESUME, /* 36 - couldn't resume download */
    CURLE_FILE_COULDNT_READ_FILE, /* 37 */
    CURLE_LDAP_CANNOT_BIND, /* 38 */
    CURLE_LDAP_SEARCH_FAILED, /* 39 */
    CURLE_OBSOLETE40, /* 40 - NOT USED */
    CURLE_FUNCTION_NOT_FOUND, /* 41 */
    CURLE_ABORTED_BY_CALLBACK, /* 42 */
    CURLE_BAD_FUNCTION_ARGUMENT, /* 43 */
    CURLE_OBSOLETE44, /* 44 - NOT USED */
    CURLE_INTERFACE_FAILED, /* 45 - CURLOPT_INTERFACE failed */
    CURLE_OBSOLETE46, /* 46 - NOT USED */
    CURLE_TOO_MANY_REDIRECTS, /* 47 - catch endless re-direct loops */
    CURLE_UNKNOWN_TELNET_OPTION, /* 48 - User specified an unknown option */
    CURLE_TELNET_OPTION_SYNTAX, /* 49 - Malformed telnet option */
    CURLE_OBSOLETE50, /* 50 - NOT USED */
    CURLE_PEER_FAILED_VERIFICATION, /* 51 - peer's certificate or fingerprint
                                         wasn't verified fine */
    CURLE_GOT_NOTHING, /* 52 - when this is a specific error */
    CURLE_SSL_ENGINE_NOTFOUND, /* 53 - SSL crypto engine not found */
    CURLE_SSL_ENGINE_SETFAILED, /* 54 - can not set SSL crypto engine as
                                        default */
    CURLE_SEND_ERROR, /* 55 - failed sending network data */
    CURLE_RECV_ERROR, /* 56 - failure in receiving network data */
    CURLE_OBSOLETE57, /* 57 - NOT IN USE */
    CURLE_SSL_CERTPROBLEM, /* 58 - problem with the local certificate */
    CURLE_SSL_CIPHER, /* 59 - couldn't use specified cipher */
    CURLE_SSL_CACERT, /* 60 - problem with the CA cert (path?) */
    CURLE_BAD_CONTENT_ENCODING, /* 61 - Unrecognized transfer encoding */
    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 - Sending the data requires a rewind
                                        that failed */
    CURLE_SSL_ENGINE_INITFAILED, /* 66 - failed to initialise ENGINE */
    CURLE_LOGIN_DENIED, /* 67 - user, password or similar was not
                                        accepted and we failed to login */
    CURLE_TFTP_NOTFOUND, /* 68 - file not found on server */
    CURLE_TFTP_PERM, /* 69 - permission problem on server */
    CURLE_REMOTE_DISK_FULL, /* 70 - out of disk space on server */
    CURLE_TFTP_ILLEGAL, /* 71 - Illegal TFTP operation */
    CURLE_TFTP_UNKNOWNID, /* 72 - Unknown transfer ID */
    CURLE_REMOTE_FILE_EXISTS, /* 73 - File already exists */
    CURLE_TFTP_NOSUCHUSER, /* 74 - No such user */
    CURLE_CONV_FAILED, /* 75 - conversion failed */
    CURLE_CONV_REQD, /* 76 - 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 */
    CURLE_SSL_CACERT_BADFILE, /* 77 - could not load CACERT file, missing
                                        or wrong format */
    CURLE_REMOTE_FILE_NOT_FOUND, /* 78 - remote file not found */
    CURLE_SSH, /* 79 - error from the SSH layer, somewhat
                                        generic so the error message will be of
                                        interest when this has happened */
    
    CURLE_SSL_SHUTDOWN_FAILED, /* 80 - Failed to shut down the SSL
                                        connection */
    CURLE_AGAIN, /* 81 - socket is not ready for send/recv,
                                        wait till it's ready and try again (Added
                                        in 7.18.2) */
    CURLE_SSL_CRL_BADFILE, /* 82 - could not load CRL file, missing or
                                        wrong format (Added in 7.19.0) */
    CURLE_SSL_ISSUER_ERROR, /* 83 - Issuer check failed.  (Added in
                                        7.19.0) */
    CURL_LAST /* never use! */

© 著作权归作者所有

共有 人打赏支持
元禛慎独
粉丝 3
博文 209
码字总数 60366
作品 0
朝阳
程序员
c用libcurl库实现https下get/post网络通信

一、LibCurl基本编程框架 libcurl是一个跨平台的网络协议库,支持http, https,ftp, gopher, telnet, dict, file, 和ldap 协议。libcurl同样支持HTTPS证书授权,HTTP POST,HTTP PUT, FTP 上传...

Linux_woniu
2017/09/24
0
0
libcurl (一)——理论

一. 传输任务的流程 1) 调用curlglobalinit()初始化libcurl 2) 调用curleasyinit()函数得到 easy interface型指针 3) 调用curleasysetopt()设置传输选项 4) 根据curleasysetopt()设置的传输选...

吃一堑消化不良
2015/10/10
193
0
windows vs2005 libcurl使用整理

获取源码 下载 https://curl.haxx.se/download/curl-7.56.0.tar.gz解压 tar -zxvf curl-7.56.0.tar.gz 使用vs2005打开工程,根据需求打开相应的工程 编译libcurl和curlD:curl-7.56.0projects......

BruceLinxu
2017/10/18
0
0
curl 和 libcurl 7.41.0 发布

curl 和 libcurl 7.41.0 发布,此版本现已提供下载,更新内容如下: 改进: NetWare build: added TLS-SRP enabled build winbuild: Added option to build with c-ares Added --cert-status......

oschina
2015/02/26
2.8K
2
C/C++: libcurl获取网页内容

安装: 示例 来自 http://stackoverflow.com/questions/13905774/in-c-how-do-you-use-libcurl-to-read-a-http-response-into-a-string : 编译、运行: 示例 (多线程) C++版本 有一个封装的......

樂天
2016/10/05
430
0

没有更多内容

加载失败,请刷新页面

加载更多

【mpvue】三

使用了快1个月,陆续整理发现的坑 1、pageA-pageB-pageA-pageC 如果以这种顺序,大概理解成,列表进详情B, 返回列表进入详情C,那么进入详情C的时候,会因为缓存,先展现详情B的内容。解决方...

登天的感觉
20分钟前
1
0
在EXCEL指定SHEET页,指定文字位置,插入批注

Java操作EXCEL文件,利用POI,在EXCEL指定SHEET页中指定文字位置处插入批注 package excel; import java.io.FileInputStream; import java.io.FileOutputStream; import org.apache.poi.hssf......

zhaochaochao
21分钟前
1
0
一些网站。

UI schema,可以用json定义UI表单:https://jsonforms.io/examples/array

王坤charlie
28分钟前
1
0
百万连接,百亿吞吐量服务的JVM性能调优实战

转载占小狼博客 应用:shark-新美大移动端网络优化(每日接受移动端请求约150亿) 应用特点 : qps比较高,新生代增长飞快 用户的连接需要维持一段时间 单机需要维持海量连接,几十万的级别 以...

BakerZhu
31分钟前
1
0
iOS涂色涂鸦效果、Swift仿喜马拉雅FM、抽屉转场动画、拖拽头像、标签选择器等源码

iOS精选源码 LeeTagView 标签选择控件 为您的用户显示界面添加美观的加载视图 Swift4: 可拖动头像,增加物理属性 Swift版抽屉效果,自定义转场动画管理器 Swift 仿写喜马拉雅FM 可能是最好用...

sunnyaigd
31分钟前
2
0

没有更多内容

加载失败,请刷新页面

加载更多

返回顶部
顶部