摘要:http://www.checkupdown.com/status/error1.html
阅读全文
摘要:最近在学习libcurl,并利用它提交POST请求,可是返回的响应总是无从验证该次POST请求是否成功提交了。1. 先看下根据firebug提交的一次成功的请求,这里以login我喜欢上的xiami为例,嘻嘻~1.1本次POST请求的HTTP交互1.2 POST1.3经server端redirect的GET2. OK,接下来看下使用libcurl向xiami发送POST请求2.1 使用libcurl的大概流程curl_easy_init()curl_easy_setopt()curl_easy_perform()curl_easy_cleanup()呵呵~超简单的吧,具体的意思这里就不详细说了
阅读全文
摘要:easy.h:#ifndef __CURL_EASY_H#define __CURL_EASY_H/*************************************************************************** * _ _ ____ _ * Project ___| | | | _ \| | * / __| | | | |_) | | * ...
阅读全文
摘要:CURLINFO:#define CURLINFO_STRING 0x100000#define CURLINFO_LONG 0x200000#define CURLINFO_DOUBLE 0x300000#define CURLINFO_SLIST 0x400000#define CURLINFO_MASK 0x0fffff#define CURLINFO_TYPEMASK 0xf00000typedef enum { CURLINFO_NONE, /* first, never use this */ CURLINFO_EFFECTIVE_URL =...
阅读全文
摘要:转自:http://www.cppblog.com/qiujian5628/archive/2008/06/28/54873.htmlLibcurl为一个免费开源的,客户端url传输库,支持FTP,FTPS,TFTP,HTTP,HTTPS,GOPHER,TELNET,DICT,FILE和LDAP,跨平台,支持Windows,Unix,Linux等,线程安全,支持Ipv6。并且易于使用。http://curl.haxx.se/libcurl/从http://curl.haxx.se/libcurl/下载一个稳定的版本,注意选择OS。在使用之前请大家多阅读libcurl的文档:因为如果要实际运用到
阅读全文
摘要:libcurl first sample#include #include #include #include #include #include using namespace std;/** size_t write_data(void *buffer, size_t size, size_t nmemb, void *userp)* curl_global_init(CURL_GLOBAL_WIN32);* CURL *easy_handle = curl_easy_init();* curl_easy_setopt(easy_handle, CURLOPT_URL, "htt
阅读全文
摘要:NAME libcurl-errors - error codes in libcurl DESCRIPTION This man page includes most, if not all, available error codes in libcurl. Why they occur and possibly what you can do to fix the problem are also included. CURLcode Almost all "easy" interface functions return a CURLcod...
阅读全文