2012-03-29 11:01:39 +01:00
|
|
|
/*
|
|
|
|
* This file is part of MXE.
|
2012-03-29 11:14:15 +01:00
|
|
|
* See index.html for further information.
|
2012-03-29 11:01:39 +01:00
|
|
|
*/
|
2010-11-29 00:16:25 +00:00
|
|
|
|
|
|
|
#include <curl/curl.h>
|
|
|
|
|
|
|
|
int main(int argc, char *argv[])
|
|
|
|
{
|
|
|
|
CURL *curl;
|
|
|
|
|
|
|
|
(void)argc;
|
|
|
|
(void)argv;
|
|
|
|
|
|
|
|
curl = curl_easy_init();
|
|
|
|
if (!curl) {
|
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
curl_easy_setopt(curl, CURLOPT_URL, "http://example.com/");
|
|
|
|
curl_easy_perform(curl);
|
|
|
|
|
|
|
|
curl_easy_cleanup(curl);
|
|
|
|
return 0;
|
|
|
|
}
|