curl-users
Re: retry doesn't work on win32?
Date: Sun, 14 Jan 2007 00:00:28 +0100 (CET)
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.
-- Commercial curl and libcurl Technical Support: http://haxx.se/curl.htmlReceived on 2007-01-14