Officially, the Location header is like all other headers, and requires
a space after the colon. If it happens to work without that for a particular
setup, the setup is error correcting your mistake, and you'll be burned
the day you move to a setup that doesn't do such error correction.
Also, you should be aware of the difference between a CGI script issuing an
internal redirect versus an external redirect. Without a HTTP scheme
(as in your example), an internal redirect will change the served page,
but not the browser's idea of the served page. This has implications with
regard to error messages and relative URLs. More often, what you want is
an external redirect, which causes the browser to refetch the page at the
new address.
-- Randal L. Schwartz, Perl hacker | [reply] |