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

[REBOL] Re: How to cgi redirect?

From: micael:gullmes:telenor:se at: 22-Oct-2002 23:08

Heres one way of doing it, don't know if that's what you are looking for: html_redirect: func [ {Creates the first part of a HTML page to be redirected} title [string!] "HTML title of the page" seconds [integer!] "Number of seconds before redirect" url [string!] "URL to redirect to" ][ print rejoin ["Content-Type: text/html^/"] print rejoin [{<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">} newline {<HTML><HEAD><META HTTP-EQUIV="Refresh" CONTENT="} seconds ;URL url {"><TITLE>} title </TITLE> newline </HEAD> <BODY> ] ] html_redirect "Test page" 0 "" Brgds /Micael -----Ursprungligt meddelande----- Fr=E5n: Jason Cunliffe [mailto:[jason--cunliffe--verizon--net]] Skickat: den 22 oktober 2002 19:52 Till: [rebol-list--rebol--com] =C4mne: [REBOL] How to cgi redirect? How to redirect immediately to a URL in cgi script if a condition is met? someflag: cgi-obj/someflag if someflag [redirect-to] ^^^^^^^^^^^ thanks ./Jason