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!
Log in to post a comment.