W3C home > Mailing lists > Public > www-jigsaw@w3.org > November to December 1996

HELP: Status 302 in CgiResource

From: Anselm Baird_Smith <abaird@www43.inria.fr>
Date: Fri, 27 Dec 1996 14:45:53 +0100 (MET)
Message-Id: <199612271345.OAA02277@www43.inria.fr>
To: bpm@techapp.com
Cc: www-jigsaw@www10.w3.org
Brian Millett writes:
 > I've got a perl cgi application (foo) that has a redirec command in it.
 > The print statements that I am using are:
 > 	print "Status: 302\n";
 > 	print "Uri: http://vlad.terraweb.com/\n";
 > 	print "Location: http://vlad.terraweb.com/\n";
 > 	print "Content-type: text/html\n\n";
 > I have foo mapped to a CgiResource, and all invocations of it work
 > like a dream.  But the "Exit" button which does the redirect just
 > causes the browser to spin.  I have to cancel/stop the connection and
 > then Jigsaw no longer responds.  I have to SIGTERM the process and
 > restart Jigsaw.  I put in some errlog print statements to do a trace
 > of the execution of the handleCGIOutput method and found the following
 > results:

Sorry for the (long) delay. I had several fires to battle against
before reaching this one. Anyway, first of, anyone using Cgiresource
should try to upgrade to java1.1 which fixes a problem with
Runtime:exec() method (next release will compile out of the box with
1.1, with some warnings though).

Next, I have used the following script:


echo "Status: 302"
echo "Content-Type: text/html"
echo "Cache-Control: no-cache"
echo "Pragma: no-cache"
echo "Location: http://www.w3.org"
echo "Hello"

Which works just fine...

Received on Friday, 27 December 1996 08:46:12 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:41:21 UTC