curl-library
Re: How do I know when all data has been received?
Date: Tue, 14 Feb 2012 13:57:18 +0100
Perfect, just what I needed.
Thank you.
/Fredrik
On Tue, Feb 14, 2012 at 1:47 PM, Yehezkel Horowitz
<horowity_at_checkpoint.com>wrote:
> > I'm using the curl_easy_* API to do a simple HTTP GET. The response is
> long enough to be split up into several calls to the callback
> CURL_WRITEFUNCTION. I wonder how I know when all the data has been
> received? When can I tell, with certainty, that no more calls will be made
> to my callback until my next curl_easy_perform()?
>
> In general you could know that all the data had arrived when the call to
> curl_easy_perform() ends.****
>
> ** **
>
> If you need granularities such “data arrived but libcurl still deal with
> the connection (close / stay-open)” - this is a different story.****
>
> ** **
>
> From your description, I think you don’t need this granularity.****
>
> ** **
>
> Yehezkel****
>
> -------------------------------------------------------------------
> List admin: http://cool.haxx.se/list/listinfo/curl-library
> Etiquette: http://curl.haxx.se/mail/etiquette.html
>
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2012-02-14