cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Using cURL to check multi hosted sites ?

From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Wed, 7 Dec 2011 14:04:08 -0800

On Wed, Dec 07, 2011 at 10:45:41PM +0100, curl-mailinglist_at_courbis.com wrote:
> I'd like to use cURL to check healthness of a multihosted web site.
>
> I have a web site hosted on 2 IP adresses. I'd like to cURL an uRL like http://webname/uri to IP1 then to IP2
>
> I can(t use http://IP1/uril as the server uses virtual hosts and doesn(t andwer this kid of query
>
> I could spoof the DNS resolution or my /etc/host file but this is not clean
>
> Is there an option in cURL to force a connexion to a specific IP, regardless the DNS resolution (this could be also used to test a new webserver before making the DNS settings)

http://curl.haxx.se/docs/faq.html#How_do_I_get_HTTP_from_a_host_us

>>> Dan
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2011-12-07