cURL / Mailing Lists / curl-users / Single Mail

curl-users

curl_callback

From: karan tandel <tandelkaran_at_gmail.com>
Date: Mon, 30 Dec 2013 12:57:01 +0530

Hi,
   As per my understanding when libcurl receives http response bodys data,
it internally malloc data, fill the response in it and provides that data
in data callback. Now in that callback If I want to further use that data I
have to malloc that data size and save that data. So for whole process, two
times malloc and data copy is being done. I want to reduce it to one for
better performance. Is there any way I can do that? Any pointers regarding
this problems are very much welcome.

Thanks,
Karan

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2013-12-30