tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bob Faist" <>
Subject Redirect from CGI servlet
Date Tue, 20 Dec 2005 21:18:19 GMT
Tomcat 5.5
Windows XP

I'm trying to retro-fit a perl CGI web app into Tomcat and the only
remaining issue is redirects.  I have enabled the CGI servlet in the
conf/web.xml file.  I have a CGI script which is setting the HTTP
response header to a redirect type but Tomcat seems to setting the
status to 200.  The CGI script is supposed to redirect a user to another
page based on successful login (form POST).  I examine the HTTP response
header with a Firefox extension and it shows that there are 2 "Status"
values.  The header contains "302 Moved" and "200 OK".  My guess is that
the browser is seeing the "200 OK" and not handling the redirect.  

Does the CGI servlet handle this redirect scenario?

Response Headers -

Server: Apache-Coyote/1.1
Status: 302 Moved
Location: http://bfaist-ws:8080/emsng_ietm/cgi-bin/
Transfer-Encoding: chunked
Date: Tue, 20 Dec 2005 21:13:16 GMT

200 OK

Confidentiality Notice
The information contained in this e-mail is confidential and intended for
use only by the person(s) or organization listed in the address. If you have
received this communication in error, please contact the sender at O'Neil &
Associates, Inc., immediately. Any copying, dissemination, or distribution
of this communication, other than by the intended recipient, is strictly

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message