Lines Matching full:curl
22 #include <curl/curl.h>
65 curl_easy_setopt(Curl, CURLOPT_TIMEOUT_MS, Timeout.count());
68 /// CurlHTTPRequest and the curl{Header,Write}Function are implementation
69 /// details used to work with Curl. Curl makes callbacks with a single
94 if (Curl)
96 Curl = curl_easy_init();
97 assert(Curl && "Curl could not be initialized");
99 curl_easy_setopt(Curl, CURLOPT_WRITEFUNCTION, curlWriteFunction);
101 curl_easy_setopt(Curl, CURLOPT_ACCEPT_ENCODING, "");
104 HTTPClient::~HTTPClient() { curl_easy_cleanup(Curl); }
110 "Unsupported CURL request method.");
113 curl_easy_setopt(Curl, CURLOPT_URL, Url.c_str());
114 curl_easy_setopt(Curl, CURLOPT_FOLLOWLOCATION, Request.FollowRedirects);
119 curl_easy_setopt(Curl, CURLOPT_HTTPHEADER, Headers);
122 curl_easy_setopt(Curl, CURLOPT_WRITEDATA, &CurlRequest);
123 CURLcode CurlRes = curl_easy_perform(Curl);
135 curl_easy_getinfo(Curl, CURLINFO_RESPONSE_CODE, &Code);