cURL / Mailing Lists / curl-library / Single Mail


Redirect Ouput to a variable in dll

From: Saravana kumar <>
Date: Sun, 6 May 2012 08:55:39 +0530

I was using libcurl as shared dll with tiny c in windows environment.
Everything seems fine, and for now, i stick with a project that needs a dll
that performs reading a html page and make some regex on it.
So, i need the output must be saved in a variable instead of writing to
stdout. Read through lots of manuals. But didn't find the way. Please help

*Which one to use?
curl_easy_recv ( CURL* curl, void* buffer, size_t buflen, size_t* n );
curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, callback_func);

PS Why don't developers consider making function like curl_exec() in php?

Saravana Kumar.A

List admin:
Received on 2012-05-06