rendered paste body#include <stdio.h>
#include <curl/curl.h>
int main(void)
{
CURL *_curl;
char *curlUrl =0;
struct curl_slist *headers = NULL; //
char *curlAuthentication =0;
curlUrl = "http://hex/";
_curl = curl_easy_init();
curl_easy_setopt(_curl, CURLOPT_URL, curlUrl);
headers = curl_slist_append(headers,"Accept: */*");
headers = curl_slist_append(headers,"User-Agent: Kreatel_IP-STB");
headers = curl_slist_append(headers,"getcontentFeatures.dlna.org: 1");
// headers = curl_slist_append(headers,"Pragma:");
// headers = curl_slist_append(headers,"Proxy-Connection:");
curl_easy_setopt(_curl, CURLOPT_HTTPHEADER, headers);
// curl_easy_setopt(_curl, CURLOPT_NOBODY ,1);
curl_easy_setopt(_curl, CURLOPT_VERBOSE, 1);
//curl_easy_setopt(_curl, CURLOPT_WRITEFUNCTION, CurlDataReceived);
// curl_easy_setopt(_curl, CURLOPT_WRITEDATA, this);
curl_easy_setopt(_curl, CURLOPT_NOPROGRESS, 0);
// curl_easy_setopt(_curl, CURLOPT_NOPROGRESS ,1 );
curl_easy_setopt(_curl, CURLOPT_FOLLOWLOCATION,1);
//curl_easy_setopt(_curl, CURLOPT_PROGRESSFUNCTION, CurlDownloadProgress);
//curl_easy_setopt(_curl, CURLOPT_PROGRESSDATA, this);
curl_easy_setopt(_curl, CURLOPT_SSL_VERIFYPEER, 0);
curl_easy_setopt(_curl, CURLOPT_SSL_VERIFYHOST, 0);
curl_easy_setopt(_curl, CURLOPT_FAILONERROR, 0);
//long proxyPort = 8888;
//char *curlProxyServer = "hex";
//curl_easy_setopt(_curl, CURLOPT_PROXY, curlProxyServer);
//curl_easy_setopt(_curl, CURLOPT_PROXYPORT, proxyPort);
CURLcode result = curl_easy_perform(_curl);
return 0;
}