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 <[email protected]> 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
follows:

wget http://1.1.1.1/  --header 'Host: www.example.com'
wget http://2.2.2.2/  --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:  [email protected]


Reply via email to