cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: retry doesn't work on win32?

From: Tobias Wendorff <tobwen_at_gmx.de>
Date: Mon, 15 Jan 2007 19:53:09 +0100

Daniel Stenberg wrote:
> On Sat, 13 Jan 2007, Tobias Wendorff wrote:
>
>> It seems like "--retry" doesn't work at all.
>> I tried this command: "curl --retry 10 http://84.187.0.223:81/"
>>
>> Since I'm not running any server on port 81, it gives me
>> "curl: (7) couldn't connect to host"
>
> Allow me to quote the manual:
>
> --retry <num>
> If a transient error is returned when curl tries to
> perform a transfer, it will retry this number of times
> before giving up. Setting the number to 0 makes curl do no
> retries (which is the default). Transient error means
> either: a timeout, an FTP 5xx response code or an HTTP 5xx
> response code.
>
> Failing to connect is not mentioned there, since it isn't considered a
> transient error and thus the transfer won't be retried...
>
> You're looking for a modified or extended behaviour of the --retry
> option that doesn't currently exist.

So what work-around would you suggest. I can't reprogram / add the
code on my own :-(
Received on 2007-01-15