in reply to Re: How do I link in CGI?
in thread How do I link in CGI?

Sarah wrote:
"# I also didn't print a header this time either
print "location:http://www.google.com\n\n";"

The formal way to do this would be to use "URI:http://...".
location: is unoffical. CGI.pm uses both.

Not that you did this wrong but: You may get incorrect results if you use relative URLs, so always use the absolute http://host/path/file URL. Cheers, Steffen

Replies are listed 'Best First'.
Re: Re: Re: How do I link in CGI?
by RatArsed (Monk) on Jul 12, 2001 at 13:53 UTC
    Going by my ever handy copy of the HTTP/1.1 RFC, "Location: <absolute-uri>" is the correct way to do it; other options, such as "URI: <blah>" are not recommended, and support for these options would be hit or miss...

    --
    RatArsed