Lines Matching full:curl
22 #include <curl/curl.h>
65 curl_easy_setopt(Curl, CURLOPT_TIMEOUT_MS, Timeout.count()); in setTimeout()
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) in HTTPClient()
96 Curl = curl_easy_init(); in HTTPClient()
97 assert(Curl && "Curl could not be initialized"); in HTTPClient()
99 curl_easy_setopt(Curl, CURLOPT_WRITEFUNCTION, curlWriteFunction); in HTTPClient()
101 curl_easy_setopt(Curl, CURLOPT_ACCEPT_ENCODING, ""); in HTTPClient()
104 HTTPClient::~HTTPClient() { curl_easy_cleanup(Curl); } in ~HTTPClient()
110 "Unsupported CURL request method."); in perform()
113 curl_easy_setopt(Curl, CURLOPT_URL, Url.c_str()); in perform()
114 curl_easy_setopt(Curl, CURLOPT_FOLLOWLOCATION, Request.FollowRedirects); in perform()
119 curl_easy_setopt(Curl, CURLOPT_HTTPHEADER, Headers); in perform()
122 curl_easy_setopt(Curl, CURLOPT_WRITEDATA, &CurlRequest); in perform()
123 CURLcode CurlRes = curl_easy_perform(Curl); in perform()
135 curl_easy_getinfo(Curl, CURLINFO_RESPONSE_CODE, &Code); in responseCode()