cURL / Mailing Lists / curl-users / Single Mail

curl-users

Using cURL to check multi hosted sites ?

From: <curl-mailinglist_at_courbis.com>
Date: Wed, 7 Dec 2011 22:45:41 +0100

Hi

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)

Thx
-------------------------------------------------------------------
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