curl-library
RE: How do I know when all data has been received?
Date: Tue, 14 Feb 2012 14:47:26 +0200
> 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
Received on 2012-02-14