[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: |
Hrvoje Niksic |
Subject: |
Re: [Bug-wget] make wget connect to a given IP/vhost? |
Date: |
Tue, 07 Sep 2010 16:17:35 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) |
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
> 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.