|
From: Gilles D. <gr...@sc...> - 2002-09-06 15:24:33
|
According to Stephan Hartmann:
> Hi developers,
>
> when i give a start_url with port 8080 (tomcat) and the webapp's servlet
> sends a redirect, htdig does not get any further. The reason seems to be that
> htdig does not include the port in the Host header of the first HTTP-Request.
> Example:
>
> the start_url is http://localhost:8080/mywebapp/myservlet/
>
> htdig sends this request:
>
> GET /robots.txt HTTP/1.0
> User-Agent: htdig/3.1.5 (myemail)
> Host: localhost
>
> i think, Host should be localhost:8080 instead. At least mozilla does this.
>
> Now if the servlet sends a redirect, it does send it without the port what
> leads to a wrong redirect.
>
> Can anybody confirm this behavior?
Yes. It's fixed in 3.1.6:
Fri Sep 14 09:18:38 2001 Gilles Detillieux <gr...@sc...>
* htdig/Document.cc (RetrieveHTTP): Add port to Host: header when
port is not default, as per RFC2616(14.23). Fixes bug #459969.
--
Gilles R. Detillieux E-mail: <gr...@sc...>
Spinal Cord Research Centre WWW: http://www.scrc.umanitoba.ca/
Dept. Physiology, U. of Manitoba Winnipeg, MB R3E 3J7 (Canada)
|