| 9487f7f | 2011-08-03 07:05:30 -0700 | [diff] [blame^] | 1 | /***************************************************************************** |
| 2 | * _ _ ____ _ |
| 3 | * Project ___| | | | _ \| | |
| 4 | * / __| | | | |_) | | |
| 5 | * | (__| |_| | _ <| |___ |
| 6 | * \___|\___/|_| \_\_____| |
| 7 | * |
| 8 | */ |
| 9 | |
| 10 | #include <stdio.h> |
| 11 | #include <curl/curl.h> |
| 12 | |
| 13 | int 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 | } |