Hi, Thanks for clarification, Still how can I be sure that entire data is send from server in chunk transfer mode. Does it mean that curl_multi_perform or curl_easy_perform should return with value CURLM_OK.
Or can I use curl_easy_getinfo with CURLINFO_RESPONSE_CODE to identify whether my download is complete. Thanks Thiru balaji.S On Tue, Sep 22, 2015 at 11:50 AM, Daniel Stenberg <[email protected]> wrote: > On Tue, 22 Sep 2015, Thiru balaji wrote: > > When I am getting writedata callback from the http1.1 server, which sends >> data in chunked transfer mode. How would i identify the end of download. >> > > When curl_easy_perform() returns or when curl_multi_perform() signals end > of transfer. Just like with all other transfers! > > Does curl gives a wrietCallback with size 0. >> > > Nope. > > if so which version of curl should be used. >> > > curl has supported chunk transfer encoding since before the age of dawn, > that is since before there even was a libcurl. > > -- > > / daniel.haxx.se > ------------------------------------------------------------------- > 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
