curl-users
Re: aborted download should be retried
From: Steven Enderle <enderle_at_mdn.de>
Date: Mon, 11 Feb 2002 11:46:05 +0100
Date: Mon, 11 Feb 2002 11:46:05 +0100
Dear Daniel,
do you have any tips for me how to get started scripting that with winnt?
Are there any specific return codes which i should check for? How do i
know if a download was successfull/failed or the network is down?
hasn't this been done before? i was searching the web but didn't find
anything related to curl.
how may such a script look like?
Thanks a lot for your help
Steven
-- -------------------------------------------------- ----- Steven Enderle ----- m d n Huebner GmbH ---- ----- enderle_at_mdn.de ----- + 49 911 93 90 90 ----- ----- Digital Imaging & Documentmanagment ----- -------------------------------------------------- Daniel Stenberg wrote: > 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. ;-) > >Received on 2002-02-11