How do I return this
int main ()
curl = curl_easy_init ();
curl_easy_setopt (curl, CURLOPT_URL, "http://example.com");
res = curl_easy_perform (curl);
This program prints the HTML of a webpage, but I'm not sure how I would return the HTML contents. Any help would be appreciated.
Use CURLOPT_WRITEFUNCTION to supply a user defined function when you take care yourself of the data received.
Topic archived. No new replies allowed.