diff options
Diffstat (limited to 'Build/source/libs/curl/docs/examples/simple.c')
-rw-r--r-- | Build/source/libs/curl/docs/examples/simple.c | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/Build/source/libs/curl/docs/examples/simple.c b/Build/source/libs/curl/docs/examples/simple.c new file mode 100644 index 00000000000..023fbf51c09 --- /dev/null +++ b/Build/source/libs/curl/docs/examples/simple.c @@ -0,0 +1,28 @@ +/***************************************************************************** + * _ _ ____ _ + * Project ___| | | | _ \| | + * / __| | | | |_) | | + * | (__| |_| | _ <| |___ + * \___|\___/|_| \_\_____| + * + * $Id: simple.c,v 1.5 2002/01/09 13:23:01 bagder Exp $ + */ + +#include <stdio.h> +#include <curl/curl.h> + +int main(void) +{ + CURL *curl; + CURLcode res; + + curl = curl_easy_init(); + if(curl) { + curl_easy_setopt(curl, CURLOPT_URL, "curl.haxx.se"); + res = curl_easy_perform(curl); + + /* always cleanup */ + curl_easy_cleanup(curl); + } + return 0; +} |