Lines Matching refs:curl
53 CURL *curl; in download_file() local
59 curl = curl_easy_init(); in download_file()
60 if (curl) { in download_file()
63 curl_easy_setopt(curl, CURLOPT_URL, url); in download_file()
64 curl_easy_setopt(curl, CURLOPT_WRITEDATA, outfile); in download_file()
65 curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, my_write_func); in download_file()
66 curl_easy_setopt(curl, CURLOPT_NOPROGRESS, false); in download_file()
67 curl_easy_setopt(curl, CURLOPT_PROGRESSFUNCTION, my_progress_func); in download_file()
68 curl_easy_setopt(curl, CURLOPT_PROGRESSDATA, progress_data); in download_file()
70 res = curl_easy_perform(curl); in download_file()
76 curl_easy_cleanup(curl); in download_file()