You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2002/08/15 23:53:45 UTC

DO NOT REPLY [Bug 11748] New: - Location header for redirection does not contain the port number

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11748>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11748

Location header for redirection does not contain the port number

           Summary: Location header for redirection does not contain the
                    port number
           Product: Tomcat 4
           Version: 4.1.9
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Major
          Priority: Other
         Component: Catalina
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: jlei@ix.netcom.com


I have written a Java HTTP Client. It works with Tomcat 4.0.1 but it doesn't 
work with Tomcat 4.1.9. It seems that the location header does not the 
application port number. 

My request (http://localhost:8080/nm/):
GET /nm/ HTTP/1.0
Host: localhost
Content-Length: 0
Connection: Close
User-Agent: None

The response:
Location: http://localhost/nm/index.jsp        <---- Doesn't have port number
Content-Type: text/html
Date: Thu, 15 Aug 2002 21:44:30 GMT
Server: Apache Coyote/1.0
Connection: close

If I just take the Location from the header and do a redirection, the request 
will be invalid.

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>