1 /*****************************************************************************
3 * Project ___| | | | _ \| |
5 * | (__| |_| | _ <| |___
6 * \___|\___/|_| \_\_____|
12 #include <curl/curl.h>
14 int main(int argc, char **argv)
19 curl_global_init(CURL_GLOBAL_ALL);
21 curl = curl_easy_init();
23 curl_easy_setopt(curl, CURLOPT_VERBOSE, 1L);
24 curl_easy_setopt(curl, CURLOPT_HEADER, 1L);
26 /* get the first document */
27 curl_easy_setopt(curl, CURLOPT_URL, "http://example.com/");
28 res = curl_easy_perform(curl);
30 /* get another document from the same server using the same
32 curl_easy_setopt(curl, CURLOPT_URL, "http://example.com/docs/");
33 res = curl_easy_perform(curl);
36 curl_easy_cleanup(curl);