Lines Matching refs:curl_handle
130 CURL *curl_handle = NULL;
287 curl_handle = curl_easy_init();
288 if (curl_handle != NULL) {
289 escl_curl_url(curl_handle, device, scan_jobs);
290 curl_easy_setopt(curl_handle, CURLOPT_POST, 1L);
291 curl_easy_setopt(curl_handle, CURLOPT_POSTFIELDS, (const char*)upload->memory);
292 curl_easy_setopt(curl_handle, CURLOPT_POSTFIELDSIZE, upload->size);
293 curl_easy_setopt(curl_handle, CURLOPT_HEADERFUNCTION, download_callback);
294 curl_easy_setopt(curl_handle, CURLOPT_HEADERDATA, (void *)download);
295 curl_easy_setopt(curl_handle, CURLOPT_FOLLOWLOCATION, 1L);
296 curl_easy_setopt(curl_handle, CURLOPT_MAXREDIRS, 3L);
297 CURLcode res = curl_easy_perform(curl_handle);
356 curl_easy_cleanup(curl_handle);