libcurl - curl_easy_perform 返回值说明

2010-07-28 3:07 P.M.



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

你可能感兴趣的:(libcurl - curl_easy_perform 返回值说明)