blob: 351cf729b197e8cbac260d5a91a75db64528ffc2 [file] [log] [blame]
9487f7f2011-08-03 07:05:30 -07001/*****************************************************************************
2 * _ _ ____ _
3 * Project ___| | | | _ \| |
4 * / __| | | | |_) | |
5 * | (__| |_| | _ <| |___
6 * \___|\___/|_| \_\_____|
7 *
8 */
9
10#include <stdio.h>
11#include <curl/curl.h>
12
13int main(void)
14{
15 CURL *curl;
16 CURLcode res;
17
18 curl = curl_easy_init();
19 if(curl) {
20 curl_easy_setopt(curl, CURLOPT_URL, "http://example.com");
21 res = curl_easy_perform(curl);
22
23 /* always cleanup */
24 curl_easy_cleanup(curl);
25 }
26 return 0;
27}