cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Feature request: Multiple proxy servers

From: Albert Chin-A-Young <china_at_thewrittenword.com>
Date: Wed, 8 Nov 2000 03:00:25 -0600

On Tue, Nov 07, 2000 at 02:14:51PM -0600, Kevin P Roth wrote:
> I'm wondering whether anyone else who sees the value in being able
> to supply a list of proxy servers to curl, and have curl keep trying
> the "back-up" servers until it gets to one that doesn't return an
> error? I'd find this ability rather nice, and I'm guessing it would
> be fairly simple to implement such a feature. Perhaps you wouldn't
> try the backups for ALL errors, but at least the obvious ones like
> not being able to establish a network connection to the first one on
> the list...
>
> Proxy-auto-config files return multiple proxy servers separated by
> semi-colons, so I'd envision the argument looking like:
>
> curl -x proxy1.ms.com:80;proxy2.ms.com:80 -U user:pass http://website/

I'd recommend multiple -x options. Even better, be smart enough that
if multiple addresses are received for the hostname, then all should
be tried.

-- 
albert chin (china_at_thewrittenword.com)
Received on 2000-11-08