Lines Matching defs:curl
12 * are also available at http://curl.haxx.se/docs/copyright.html.
24 #include <curl/curl.h>
53 CURL *curl;
56 "curl.tar.gz", /* name to store the file as if succesful */
62 curl = curl_easy_init();
63 if(curl) {
67 curl_easy_setopt(curl, CURLOPT_URL,
68 "ftp://ftp.example.com/pub/www/utilities/curl/curl-7.9.2.tar.gz");
70 curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, my_fwrite);
72 curl_easy_setopt(curl, CURLOPT_WRITEDATA, &ftpfile);
75 curl_easy_setopt(curl, CURLOPT_VERBOSE, 1L);
77 res = curl_easy_perform(curl);
80 curl_easy_cleanup(curl);
84 fprintf(stderr, "curl told us %d\n", res);