Resync
[CMakeLuaTailorHgBridge.git] / CMakeLua / Utilities / cmcurl-7.19.0 / docs / examples / simple.c
blob169afe9c8df45c5d30a624c35216392d76128a4e
1 /*****************************************************************************
2 * _ _ ____ _
3 * Project ___| | | | _ \| |
4 * / __| | | | |_) | |
5 * | (__| |_| | _ <| |___
6 * \___|\___/|_| \_\_____|
8 * $Id: simple.c,v 1.1.1.1 2008-09-23 16:32:05 hoffman Exp $
9 */
11 #include <stdio.h>
12 #include <curl/curl.h>
14 int main(void)
16 CURL *curl;
17 CURLcode res;
19 curl = curl_easy_init();
20 if(curl) {
21 curl_easy_setopt(curl, CURLOPT_URL, "curl.haxx.se");
22 res = curl_easy_perform(curl);
24 /* always cleanup */
25 curl_easy_cleanup(curl);
27 return 0;