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=4600>.
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=4600

Tomcat 3.3 redirect behavior differs from Tomcat 3.2

           Summary: Tomcat 3.3 redirect behavior differs from Tomcat 3.2
           Product: Tomcat 3
           Version: 3.3 Final
          Platform: Sun
        OS/Version: Solaris
            Status: NEW
          Severity: Major
          Priority: Other
         Component: Servlet
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


Here is the scenario: I access /foo/bar/ on my server. In that directory
is the file index.jsp (which is defined in the welcome-file-list). Tomcat
3.2 returns a '302 Found' HTTP response, while Tomcat 3.3 returns a '301
Moved Permanently' response. Both return a Location header with the correct 
address.

I am not certain which response is actually correct, but the 301 response is 
causing
me a problem using the Openwave WAP SDK 4.1 ... it cannot display the page, 
whereas with
Tomcat 3.2 it had no problem.

This is the only other relevant information I could find on this problem:
http://w4.metronet.com/~wjm/tomcat/2001/Mar/msg00044.html

The full output returned from Tomcat 3.3 and Tomcat 3.2 for a sample
page is included below for comparison.


Thanks for any help,
Jamie Hall
[EMAIL PROTECTED]



-----------------------
Output from Tomcat 3.3:
-----------------------
GET /wap/kpn/ HTTP/1.1
Host: www.jsmart.com
Connection: close

Read 499 bytes from host www.jsmart.com, path /wap/kpn/
HTTP/1.1 301 Moved Permanently
Date: Fri, 02 Nov 2001 17:57:14 GMT
Server: Apache/1.3.20 (Unix) PHP/4.0.4pl1 ApacheJServ/1.1.2
Servlet-Engine: Tomcat Web Server/3.3 Final ( JSP 1.1; Servlet 2.2 )
Location: http://64.71.143.28/wap/kpn/index.jsp
Content-Length: 183
Connection: close
Content-Type: text/html

<html><head><title>Document moved</title></head>
<body><h1>Document moved</h1>
This document has moved <a 
href="http://64.71.143.28/wap/kpn/index.jsp";>here</a>.<p>
</body>
</html>


-----------------------
Output from Tomcat 3.2:
-----------------------
GET /wap/kpn/ HTTP/1.1
Host: www.jsmart.com
Connection: close

Read 532 bytes from host www.jsmart.com, path /wap/kpn/
HTTP/1.1 302 Found
Date: Fri, 02 Nov 2001 17:59:07 GMT
Server: Apache/1.3.20 (Unix) PHP/4.0.4pl1 ApacheJServ/1.1.2
Servlet-Engine: Tomcat Web Server/3.2.3 (JSP 1.1; Servlet 2.2; Java 1.3.1; 
SunOS 5.7 sparc; java.vendor=Sun Microsystems Inc.)
Location: http://64.71.143.28/wap/kpn/index.jsp
Content-Length: 170
Connection: close
Content-Type: text/html

<head><title>Document moved</title></head>
<body><h1>Document moved</h1>
This document has moved <a 
href="http://64.71.143.28/wap/kpn/index.jsp";>here</a>.<p>
</body>

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to