When using the proxy feature, redirect responses (302) from the web browser use the host of proxy in the "Location:" header. This is apparently because the proxy request puts the proxy host in the "Host:" header.
SimpleTest is sending a HTTP 1.0 request. I don't think "Host:" header is valid for a HTTP 1.0 request (I did not see it in the specification). If it is allowed, it probably should be the host of the request URL, not the proxy server host.
The problem appears to be resolved by removing this line in http.php:
$socket->write($this->_getHostLine() . "\r\n");
Thanks for a great test package!
Logged In: YES
user_id=292377
Originator: NO
Indeed the "Host:" is not part of the specification (see http://www.w3.org/Protocols/HTTP/1.0/draft-ietf-http-spec.html#HeaderFields\).