cURL / Mailing Lists / curl-library / Single Mail

curl-library

Redirect Ouput to a variable in dll

From: Saravana kumar <saravanakumar.a.o_at_gmail.com>
Date: Sun, 6 May 2012 08:55:39 +0530

Hi,
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
me.

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

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

Regards,
Saravana Kumar.A
http://davinciwheels.in

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2012-05-06