[REBOL] Re: redirecting CGI HTML output
From: kracik:mbox:dkm:cz at: 24-Oct-2000 15:16
I think it's user's browser redirection from a CGI program, it's done
simply with HTTP protocol header, like this:
redirect: func [ rel-url [ string! ] ] [
print "HTTP/1.1 302 Object moved"
print rejoin [ "Location: " rel-url ]
The only problem is that if you redirect, you should not print the
content-type HTTP header and CRLF at the beginning of your CGI script.
CRS - Psy Sel/SPO, COUSSEMENT Christophe, CPN