cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: How to support transfer resuming in libcurl?

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Fri, 16 Aug 2002 09:26:04 +0200 (MET DST)

On Thu, 15 Aug 2002, Stanislav Samolenkov wrote:

> I developed FTP client unit using libcurl. My boss set me on the research
> to find out can my FTP client resume transfer when FTP server closes the
> sockets or dies. I performed the following experiment. I started FTP
> server, pure_ftpd in my case, on the one machine and run my FTP client unit
> on the other machine. My FTP client has been loaded to perform downloading
> of the huge file. While the transfer was going on I killed FTP server fork
> serving for downloading that particular file. Imediately FTP client stopped
> downloading having got message from libcurl that file has not been download
> entierly. My question is 'how to support transfer resuming by means of
> libcurl'?

Did you try setting CURLOPT_RESUME_FROM to the amount of bytes you did manage
to receive and then retried the download? It is supposed to work...

-- 
 Daniel Stenberg -- curl related mails on curl related mailing lists please
-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
Received on 2002-08-16