| |
|
|
|
cURL Mailing List Monthly Index Single Mail
curl-library Mailing List Archives
RE: Request To Memory Buffer
From: Uygar Gümüs <uygar.gumus_at_vestel.com.tr>
Date: Fri, 8 Jun 2007 11:05:20 +0300
Thanks for quick reply but that example shows saving to memory. My case is about reading from that memory block like reading from server url.
For example
if(url not in cache)
curl_easy_setopt(curl_handle, CURLOPT_WRITEFUNCTION, WriteCallback);
curl_easy_setopt(curl_handle, CURLOPT_WRITEDATA, (void *)&chunk);
I am doing this because there are some code blocks which assumes that "data will be given from CURLOPT_WRITEFUNCTION callback, not directly" and i don`t want to change that part because of possible changes by developers of that parts.
curl_easy_perform(curl_handle);
curl_easy_cleanup(curl_handle);
Uygar....
-----Original Message-----
On Fre 08.06.2007 09:40, Uygar Gümüs wrote:
Have you try to look into the *excellent* examples dir:
http://curl.haxx.se/libcurl/c/example.html
=> http://curl.haxx.se/lxr/source/docs/examples/getinmemory.c
>Can you please reply... Thanks a lot
Ht the urls help ;-)
Cheers
Aleks
These mail archives are generated by hypermail. |
Page updated November 12, 2010.
web site info