Lines Matching defs:curl
10 /* an attempt to use the curl library in concert with a gtk-threaded application */
15 #include <curl/curl.h>
44 CURL *curl;
49 curl = curl_easy_init();
50 if(curl)
52 outfile = fopen("test.curl", "w");
54 curl_easy_setopt(curl, CURLOPT_URL, url);
55 curl_easy_setopt(curl, CURLOPT_WRITEDATA, outfile);
56 curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, my_write_func);
57 curl_easy_setopt(curl, CURLOPT_READFUNCTION, my_read_func);
58 curl_easy_setopt(curl, CURLOPT_NOPROGRESS, 0L);
59 curl_easy_setopt(curl, CURLOPT_PROGRESSFUNCTION, my_progress_func);
60 curl_easy_setopt(curl, CURLOPT_PROGRESSDATA, Bar);
62 res = curl_easy_perform(curl);
66 curl_easy_cleanup(curl);