curl-library
Re: Can i access response of HTTP POST other than callback mechanism?
From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Thu, 1 Sep 2005 15:20:35 +0200 (CEST)
Date: Thu, 1 Sep 2005 15:20:35 +0200 (CEST)
On Thu, 1 Sep 2005, Satish Mittal wrote:
>>> In the same way, can i access the entire response ONLY through the
>>> CURLOPT_WRITEFUNCTION callback?
>>
>> No.
>
> 1) What is the other way than callback method?
The 'No' above should be read as "No - there is no way to read the entire
response".
> 2) Also , write callback will be called multiple times, each time with
> size*nmemb amount of data, instead of whole data in one shot.
Yes, that's how it works and that's what you get. If you want the whole
response in one big chunk then you write your callback to do just that. Like
the getinmemory.c example does.
-- Commercial curl and libcurl Technical Support: http://haxx.se/curl.htmlReceived on 2005-09-01