Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search

[REBOL] Re: redirecting CGI HTML output

From: kracik:mbox:dkm:cz at: 24-Oct-2000 15:16

Hi, 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 ] print "^m^j" ] 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. -- Michal Kracik CRS - Psy Sel/SPO, COUSSEMENT Christophe, CPN wrote: