Lines Matching refs:curl_handle
61 CURL *curl_handle;
132 curl_handle = curl_easy_init();
135 curl_easy_setopt(curl_handle, CURLOPT_URL, url);
138 curl_easy_setopt(curl_handle, CURLOPT_WRITEFUNCTION, WriteCallback);
142 curl_easy_setopt(curl_handle, CURLOPT_USERAGENT,
146 res = curl_easy_perform(curl_handle);
152 res = curl_easy_getinfo(curl_handle, CURLINFO_SIZE_DOWNLOAD, &val);
157 res = curl_easy_getinfo(curl_handle, CURLINFO_TOTAL_TIME, &val);
162 res = curl_easy_getinfo(curl_handle, CURLINFO_SPEED_DOWNLOAD, &val);
168 res = curl_easy_getinfo(curl_handle, CURLINFO_NAMELOOKUP_TIME, &val);
173 res = curl_easy_getinfo(curl_handle, CURLINFO_CONNECT_TIME, &val);
184 curl_easy_cleanup(curl_handle);