This code gets html page. Put html page's address to fetch instead of http://example.com. Below posted code is from
http://curl.haxx.se/libcurl/c/simple.html[
^]
#include <stdio.h>
#include
int main(void)
{
CURL *curl;
CURLcode res;
curl = curl_easy_init();
if(curl) {
curl_easy_setopt(curl, CURLOPT_URL, "http://example.com");
res = curl_easy_perform(curl);
curl_easy_cleanup(curl);
}
return 0;
}
Y</stdio.h>