"Yuan LIU" <[EMAIL PROTECTED]> writes:
> This is no bug. But we encountered a situation where a server
> insists on accurate FQDN in the host header, or no header at all.
> When we have to access the server from outside the NAT firewall
> using port forwarding, wget cannot retrieve file.
>
> If there's an option to surpress host header all together, this
> problem can be solved.
Wget currently cannot suppress the host header, but you can change it
at will.
wget -d --header 'Host: FQDN' http://localhost/
...
GET / HTTP/1.0
User-Agent: Wget/1.10+devel
Accept: */*
Host: FQDN
Connection: Keep-Alive
This requires at least Wget 1.10 to work.
I was planning to implement `wget --header Host' suppressing the
generation of the Host (or any other) header altogether.