W3C home > Mailing lists > Public > www-talk@w3.org > July to August 1995

test of new Location header usage

From: Shel Kaphan <sjk@amazon.com>
Date: Sun, 6 Aug 1995 15:38:07 -0700
Message-Id: <199508062238.PAA06639@bert.amazon.com>
To: www-talk@w3.org

Given the new use of the Location header in the HTTP spec, I would be curious
what happens when you run the following test on your servers.  Especially NCSA
and CERN. Put this in your cgi-bin directory:

#!/bin/sh
echo "Status:200"
echo "Location: http://www.yoursite.com/loser.html"
echo
echo "<html>"
echo "<h1>this is only a text</h1>"
echo "</html>"


and call it foo (also chmod a+x), and then telnet to port 80 (or whatever
your server runs on) and type

	GET /cgi-bin/foo HTTP/1.0

followed by two newlines.

What response header do you get?   (Would expect either 200 if it
works, or 302 if it doesn't).

--Shel
  sjk@amazon.com
Received on Sunday, 6 August 1995 18:41:14 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 27 October 2010 18:14:18 GMT