cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: aborted download should be retried

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Fri, 8 Feb 2002 11:41:44 +0100 (MET)

On Fri, 8 Feb 2002, Steven Enderle wrote:

> we currently try to set up a weekly repeating data transfer with a customer
> via https.
>
> Now while using curl to download the files, the connection is somehow
> reset. This seems to happend a lot, but i guess i cannot to anything about
> it, maybe its because of some bad line quality, whatever.
>
> I was wondering, how to get curl to retry the download? Is this only
> possible via script?

The curl command line tool does not do this automaticly, no. I know others
have requested this feature before, but AFAIK no one has added the necessary
code snippets to make it happen.

So yes, until someone brings that funcitonality, you're left to script your
way out of this problem with the command line tool or with your favorite curl
binding.

> wget does this nice but wget doesn't support https-proxys.

Right.

> Any suggestions how to do this with WinNT?

I can come up with these three alternatives:

A) write C code to make the client retry failed transfers

B) write a script that re-runs the client when needed

C) patch wget to use CONNECT

If you opt for A or B, I'm sure you can get help on the curl mailing lists
should you get stuck somewhere.

If you opt for C, well then you're in the wrong neighborhood. ;-)

-- 
    Daniel Stenberg -- curl groks URLs -- http://curl.haxx.se/
Received on 2002-02-08