[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:52:17 +0200
User-agent: Thunderbird (X11/20090812)

I think the documentation would surely benefit from an "examples" section. Writing there that example with "virtual host" keywords somewhere would allow users to find it promptly. The --header section is clear enough, it's just you have to know what you are looking for. :-)

Thanks for this great tool!

Hrvoje Niksic wrote:
Tom Mizutani <address@hidden> writes:

If you really believe that "www.example.com" is a virtual server,  I
suggest to specify the host with "--header" command line option, as

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

That is exactly the way to do it, and has worked perfectly for me in the
past (in fact, supporting this was an important use case when the
--header feature was last revamped).  Improvements as to how to make
this more apparent in the manual would be most welcome.

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]