[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-wget] make wget connect to a given IP/vhost?
From: |
Tom Mizutani |
Subject: |
Re: [Bug-wget] make wget connect to a given IP/vhost? |
Date: |
Tue, 7 Sep 2010 23:05:02 +0900 |
Hi,
If you really believe that "www.example.com" is a virtual server, I
suggest to specify the host with "--header" command line option, as
follows:
wget http://1.1.1.1/ --header 'Host: www.example.com'
wget http://2.2.2.2/ --header 'Host: www.example.com'
I hope this works.
Regards,
2010/9/7 Tomasz Chmielewski <address@hidden>:
> I'm running a geo-ip web cache system.
>
> Assuming I have a www.example.com domain configured, DNS replies with a
> different IP, depending on who asks (i.e. location in US would get a 1.1.1.1
> address, location in Europe would get a 2.2.2.2 address, and so on).
>
>
> Now, I'd like to monitor if each of the caches replies with correct content
> (i.e. a given page contains a given string).
> c
> Can I somehow make wget connect to a given remote IP and fetch a given
> vhost?
>