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  <[EMAIL PROTECTED]>

        * 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: <[EMAIL PROTECTED]>
Spinal Cord Research Centre       WWW:    http://www.scrc.umanitoba.ca/
Dept. Physiology, U. of Manitoba  Winnipeg, MB  R3E 3J7  (Canada)


-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
_______________________________________________
htdig-dev mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/htdig-dev

Reply via email to