Bob Faist wrote: > 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? >
The short answer is no. Take a look at line 1775 of http://svn.apache.org/repos/asf/tomcat/container/tc5.5.x/catalina/src/share/org/apache/catalina/servlets/CGIServlet.java If you want to submit a patch, I'll review it. Mark --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]