[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: Estanislao Gonzalez
Subject: Re: [Bug-wget] make wget connect to a given IP/vhost?
Date: Tue, 07 Sep 2010 16:05:10 +0200
User-agent: Thunderbird (X11/20090812)


not sure this is what you are asking, but I suppose you could just manipulate the headers:

wget --header='Host: www.example.com'

check the man page for further information.


Tomasz Chmielewski wrote:
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 address, location in Europe would get a 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).
Can I somehow make wget connect to a given remote IP and fetch a given vhost?

I'm thinking in something in the line of:

wget --remote-ip www.example.com
wget --remote-ip www.example.com

Is something like this possible with wget? I checked the manual, but I didn't find an option which would be similar in functionality.

Estanislao Gonzalez

Max-Planck-Institut für Meteorologie (MPI-M)
Deutsches Klimarechenzentrum (DKRZ) - German Climate Computing Centre
Room 108 - Bundesstrasse 45a, D-20146 Hamburg, Germany

Phone:   +49 (40) 46 00 94-126
E-Mail:  address@hidden

reply via email to

[Prev in Thread] Current Thread [Next in Thread]