curl_easy_perform 返回值说明
curl_easy_perform 返回值说明
转载自 亮剑独步江湖
response=curl_easy_perform(curl);
response返回的状态值
CURLE_OK: printf("send ok!\n");
CURLE_HTTP_POST_ERROR: printf("post error!\n");
CURLE_COULDNT_CONNECT: printf("cannot connect to server\n");
CURLE_OK = 0, 0: no error
CURLE_UNSUPPORTED_PROTOCOL, 1: unsupported protocol
CURLE_FAILED_INIT, 2: failed init
CURLE_URL_MALFORMAT, 3: URL using bad/illegal format or missing URL CURLE_URL_MALFORMAT_USER, 4: unknown error
CURLE_COULDNT_RESOLVE_PROXY, 5: couldn't resolve proxy name
CURLE_COULDNT_RESOLVE_HOST, 6: couldn't resolve host name
CURLE_COULDNT_CONNECT, 7: couldn't connect to server
CURLE_FTP_WEIRD_SERVER_REPLY, 8: FTP: weird server reply
CURLE_FTP_ACCESS_DENIED,
CURLE_FTP_USER_PASSWORD_INCORRECT, 10: unknown error
CURLE_FTP_WEIRD_PASS_REPLY, 11: FTP: unknown PASS reply
CURLE_FTP_WEIRD_USER_REPLY, 12: FTP: unknown USER reply
CURLE_FTP_WEIRD_PASV_REPLY, 13: FTP: unknown PASV reply
CURLE_FTP_WEIRD_227_FORMAT, 14: FTP: unknown 227 response format
CURLE_FTP_CANT_GET_HOST, 15: FTP: can't figure out the host in the PASV response
CURLE_FTP_CANT_RECONNECT, 16: FTP: can't connect to server the response code is unknown
CURLE_FTP_COULDNT_SET_BINARY, 17: FTP: couldn't set binary mode CURLE_PARTIAL_FILE, 18: Transferred a partial file
CURLE_FTP_COULDNT_RETR_FILE, 19: FTP: couldn't retrieve (RETR failed) the specified file
CURLE_FTP_WRITE_ERROR, 20: FTP: the post-transfer acknowledge response was not OK
CURLE_FTP_QUOTE_ERROR, 21: FTP: a quote command returned error CURLE_HTTP_RETURNED_ERROR, 22: HTTP response code said error
CURLE_WRITE_ERROR, 23: failed writing received data to disk/application CURLE_MALFORMAT_USER, 24: unknown error
CURLE_UPLOAD_FAILED, 25: upload failed (at start/before it took off) CURLE_READ_ERROR, 26: failed to open/read local data from
file/application
CURLE_OUT_OF_MEMORY, 27: out of memory
curl_easy_perform(3) libcurl Manual curl_easy_perform(3) NAME curl_easy_...curl_easy_perform 返回... 2页 免费 curl_easy_setopt 暂无评价 42页 免费...
http://www.php.net/manual/zh/function.curl-setopt.php 2.6 curl_easy_perform() error 返回值,见上面有详细说明; (注 1) 【#include <curl/curl.h> ...
它的返回值一般都用在 easy 系列的函数 中. 5 void curl_easy_cleanup(CURL...7 CURLcode curl_easy_perform(CURL *handle); 描述:这个函数在初始化 CURL ...
参数说明 curl_easy_setopt()参数: CURLOPT_URL 设置目标 URL 地址 CURL *...值 CURLOPT_TIMETOU 设置一个超时时间, 若超过此时间 perform 会立即返回, 返回...
. 函数说明( 态码) 3.4 curl_easy_perform 函数说明(error 状 态码)该函数完成 curl_easy_setopt 指定的所有选项,本节重点介绍 curl_easy_perform 的返回值...
他的返回值一般都用在 easy 系列的函数中. 5 ...res = curl_easy_perform(curl); //清除 curl ...CURL最全的说明函数库 7页 免费 基于PHP的cURL快速...
HRESULT返回值说明_IT/计算机_专业资料。HRESULT结构及常见返回值如果函数正常执行,则返回 S_OK,同时真正的函数运行结果则通过参数指针返回。如果遇到了异常情况,则...
有关http请求返回值的说明_信息与通信_工程科技_专业资料。有关http请求返回值的说明2xx 200 201 202 203 204 3xx 301 302 303 应。 304 305 306 4xx 400 ...
它的返回值一般都用在 easy 系列的函数中. 5 void curl_easy_cleanup(CURL ...} } return 0; res = curl_easy_perform(curl); //清除 curl 操作. curl...
fork函数的2个返回值说明_IT/计算机_专业资料。fork函数的2个返回值详解fork 简介: fork 英文原意是“分岔,分支”的意思,而在操作系统中,乃是著名的 Unix(或类...
热门文档