in reply to Re^3: Direct a LWP connection to a different host
in thread Direct a LWP connection to a different host

Yes, and I expected servers would return a 5XX response in such cases, It seems that instead, those I tried this with treat a request of this form as a request for the server root. So in a roundabout way it accidentally works as intended for (some of) the uses discussed in the root node. Strange.

Makeshifts last the longest.

  • Comment on Re^4: Direct a LWP connection to a different host

Replies are listed 'Best First'.
Re^5: Direct a LWP connection to a different host
by hossman (Prior) on Jan 31, 2005 at 08:18 UTC

    Good point, this may not work with every HTTP server out there.

    all of the servers i've ever seen (that understand HTTP/1.1) use the Host header to determine the virtual host, and ignore the hostname from the request line. but there is no garuntee that that's tru for *ALL* HTTP servers.