curl-library
Re: Automatic retry with server errors
Date: Thu, 23 Dec 2010 19:53:31 +0100 (CET)
On Thu, 23 Dec 2010, Johan van Selst wrote:
> That would work. We already get the IP of a successful connection with
> CURLINFO_PRIMARY_IP: That might be used to set up a blacklist for a later
> request.
>
> How about an option such as CURLOPT_IGNORE_SERVER_IPS to pass a comma-
> separated list of addresses that should not be used for a connection?
> (Another option that already uses a comma-seperated list of server names is
> CURLOPT_NOPROXY.)
I like that!
> It might be useful to have a CURLOPT_USE_SERVER_IPS as well, to force the
> libcurl to use specific IP address(es), rather than having it use DNS
> resolving and pick an arbitrary IP from the list of addresses returned by
> DNS.
Isn't that pretty much what CURLOPT_RESOLVE already provides?
-- / daniel.haxx.se ------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette: http://curl.haxx.se/mail/etiquette.htmlReceived on 2010-12-23