CURL *curl = curl_easy_init(); if(curl) { CURLcode res; curl_easy_setopt(curl, CURLOPT_URL, "https://example.com"); res = curl_easy_perform(curl); if(res == CURLE_OK) { long http_version; curl_easy_getinfo(curl, CURLINFO_HTTP_VERSION, &http_version); } curl_easy_cleanup(...
inturl_len,constchar* url,intlen,constchar* data,constchar* SOAPaction){#ifdefUSE_CURLstructzx_str*ret;CURLcode res;structzxid_curl_ctxrc;structzxid_curl_ctxwc;structcurl_slistcontent_type;structcurl_slistSOAPaction_curl;char* urli;
https://curl.se/libcurl/c/CURLINFO_HTTP_VERSION.html">CURLINFO_HTTP_VERSION 获取在连接时候使用的http版本。 CURL *curl = curl_easy_init(); if(curl) { CURLcode res; curl_easy_setopt(curl, CURLOPT_URL, "https://example.com"); res = curl_easy_perform(curl); if(res =...