Hi all I am trying to get squivi2 running under tomcat cgi, but I am having a problem with redirects.
Code I am testing generates a redirect as follows: ----- my $tempout = $q->header( -nph=>1, -status=>"302 Moved Temporarily", -location=>$dest, ); open F, ">/tmp/f"; print F $tempout; close F; print $tempout; exit 0; ----- I am printing the output to /tmp/f to check what is being sent to the browser. The contents of that file look like: ---------------------- HTTP/1.0 302 Moved Temporarily Server: TOMCAT Status: 302 Moved Temporarily Date: Wed, 08 Jun 2005 09:31:34 GMT Location: http://127.0.0.1:8080/cgi-bin/squivi.cgi/seqf_11/proto_prep Content-Type: text/html; charset=ISO-8859-1 ---------------------- Here is where the problem comes in. When I try to access the cgi, It doesn;t redirect, but downloads the file. It seems that tomcat is changing the 302 status to a 200 somewhere. When I telnet to the tomcat port and GET the cgi, this is what I see: ------------------------- GET /cgi-bin/squivi.cgi/seqf_11 HTTP/1.0 Host: 127.0.0.1 HTTP/1.1 200 OK Pragma: No-cache Cache-Control: no-cache Expires: Thu, 01 Jan 1970 02:00:00 SAST Server: TOMCAT Status: 302 Moved Temporarily Date: Wed, 08 Jun 2005 09:40:24 GMT Content-Length: 0 Server: Apache-Coyote/1.1 Connection: close ------------------------------- Note that the Location header has been removed, and the status has been changed to 200. Am I missing a trick here? What is going on? Chris --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]