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

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

2014-02-27 Thread Md Kashif
Hi, I'm trying to write a download manager using libcurl but before I start with it I had a question. 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 d

Re: How to resume a paused download.

2014-02-27 Thread Md Kashif
Hi, I'm trying to write a download manager using libcurl but before I start with it I had a question. 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 dow

Re: How to resume a paused download.

2013-09-08 Thread Md Kashif
wrong here and should take a different approach because documentation suggests that I'm using curl_easy_pause() in a wrong way. 2) Now other option for me is CURL_WRITEFUNC_PAUSE but if I use it then how do I unpause? Thanks, -kashif - Original Message - From: Clemens Gruber

How to resume a paused download.

2013-09-07 Thread Md Kashif
Hi, I'm trying to implement a simple download manager application that supports Pause\ Resume functionality that can pause or resume download based on a button click from user. As I see it I can pause my download by returning CURL_WRITEFUNC_PAUSE from my write function. But I'm wondering how wo