From users-return-137593-apmail-tomcat-users-archive=tomcat.apache.org@tomcat.apache.org Tue Dec 20 22:27:50 2005 Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 37639 invoked from network); 20 Dec 2005 22:27:50 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 20 Dec 2005 22:27:50 -0000 Received: (qmail 58306 invoked by uid 500); 20 Dec 2005 22:27:32 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 58187 invoked by uid 500); 20 Dec 2005 22:27:32 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 58153 invoked by uid 99); 20 Dec 2005 22:27:31 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 20 Dec 2005 14:27:31 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [193.252.22.158] (HELO smtp1.freeserve.com) (193.252.22.158) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 20 Dec 2005 14:27:31 -0800 Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf3006.me.freeserve.com (SMTP Server) with ESMTP id 9F8A21C00097 for ; Tue, 20 Dec 2005 23:27:09 +0100 (CET) Received: from [192.168.0.2] (user-3436.l4.c1.dsl.pol.co.uk [81.77.237.108]) by mwinf3006.me.freeserve.com (SMTP Server) with ESMTP id 811C51C00088 for ; Tue, 20 Dec 2005 23:27:09 +0100 (CET) X-ME-UUID: 20051220222709529.811C51C00088@mwinf3006.me.freeserve.com Message-ID: <43A8853E.8090405@apache.org> Date: Tue, 20 Dec 2005 22:27:10 +0000 From: Mark Thomas User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Tomcat Users List Subject: Re: Redirect from CGI servlet References: In-Reply-To: X-Enigmail-Version: 0.93.0.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N 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: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org