Re: Does Libcurl support downloading payload in chunks to increase success rate?

2014-02-27 Thread Dan Fandrich
On Fri, Feb 28, 2014 at 12:19:49AM +0800, Md Kashif wrote: > How would application know if download of a chunk was successful or not. Is > checking for the return value of curl_easy_perform() for each chunk enough? No, you need to look at the application-level return code as well. You also need t

Re: Does Libcurl support downloading payload in chunks to increase success rate?

2014-02-27 Thread Md Kashif
Hi Yehezkel, How would application know if download of a chunk was successful or not. Is checking for the return value of curl_easy_perform() for each chunk enough? Also, for resuming interrupted downloads which option would be the best  CURLOPT_RESUME_FROM or CURLOPT_RANGE or is there any other

RE: Does Libcurl support downloading payload in chunks to increase success rate?

2014-02-27 Thread Yehezkel Horowitz
>Does libcurl download the whole payload as single chunk or does it divide the >payload into smaller chunks. For example some download managers divide the >whole payload into small chunks and download each chunk separately. If >download of any chunk fails in between then only that chunk needs to