You might want to take a look at http://curl.haxx.se/docs/libs.html to see what dependencies cURL has.
In order to use output from curl to something useful such as a QString:
struct MemoryStruct chunk;
chunk.memory=NULL;
chunk.size = 0;
//.... setting options and other stuff
curl_easy_setopt(curl_handle, CURLOPT_WRITEDATA, (void *)&chunk);
//.... setting more optons
//exec curl
curl_easy_perform(curl_handle);
stuffFromcURL
= QString::fromUtf8 (chunk.
memory);
QString stuffFromcURL;
struct MemoryStruct chunk;
chunk.memory=NULL;
chunk.size = 0;
//.... setting options and other stuff
curl_easy_setopt(curl_handle, CURLOPT_WRITEDATA, (void *)&chunk);
//.... setting more optons
//exec curl
curl_easy_perform(curl_handle);
stuffFromcURL = QString::fromUtf8 (chunk.memory);
To copy to clipboard, switch view to plain text mode
Bookmarks