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

Redirection blues

From: Brian Millett <bpm@terraweb.com>
Date: Tue, 17 Dec 1996 17:32:51 -0600
To: www-jigsaw@w3.org
Message-ID: <19961217233251.AAA20290@vlad.terraweb.com>
	Well after a bit of snooping around in the code & turning on
-trace, I found that the CgiResource was not returning a correct mime
header for the httpd (Jigsaw) server to handle.  What was missing was
"Content-length: 0"

Here is a trace of the "redirect" used while adding a user to my realm
(I feel like a king :-) )

HTTP/1.0 302 Moved Temporarily
Cache-Control: no-cache
Connection: Keep-Alive
Date: Tue, 17 Dec 1996 22:21:5 GMT
Pragma: no-cache
Content-Length: 0
Location: ..
Server: Jigsaw/1.0a3
This is the trace after executing a CgiResource that issued a
redirect.  Notice that there is no Content-Length: 0

HTTP/1.0 302 Moved Temporarily
Date: Tue, 17 Dec 1996 22:22:35 GMT
Content-Type: text/html
Location: http://vlad.terraweb.com/
Server: Jigsaw/1.0a3
uri: http://vlad.terraweb.com/
So I added the following to the handleCGIOutput method right after the
catches, before the return reply;

	if ( reply.getStatus() == HTTP.MOVED_TEMPORARILY ) {
	  String nocache[] = { "no-cache" };

Now the CgiResources redirect like they should.

Brian Millett                    
Technology Applications Inc.     "Heaven can not exist,
(314) 530-1981                          If the family is not eternal"
bpm@techapp.com                   F. Ballard Washburn
Received on Tuesday, 17 December 1996 18:30:10 UTC

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