#!/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
[email protected]