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

server redirect rebol in CGI mode

 [1/3] from: warp::reboot::ch at: 6-Oct-2001 19:15


Hello all 8) I have a little problem: when I do a server redirect in a cgi, everything goes fine but the process that sent the redirect doesn't quit. any idea how to quit or kill that process ? code: #!/Users/dRUId/rebol/CORE/rebol -cs rebol [] http-redir: func [url] [ print join "Location: " url print join "Expires: 0" newline quit ] http-redir http://10.0.0.22/r/van3/vanilla.r Thank you and have a nice day Will Arp [warp--reboot--ch]

 [2/3] from: kenlo:myrealbox at: 17-Oct-2001 10:16


2001/10/6 PM 09:15:59, Will <[warp--reboot--ch]> wrote:
>when I do a server redirect in a cgi, >everything goes fine but the process that sent >the redirect doesn't quit.
This code works for for me. No hangover. rebol[] loc: last parse system/options/cgi/query-string "=" replace/all loc "\" "/" print "Content-type: text/html^j^j" print "<head>" newloc: join "<META HTTP-EQUIV=^"Refresh^" Content= ^"0; URL=http://localhost" loc newloc: join newloc "^">" print newloc print "</head>"

 [3/3] from: warp:reboot:ch at: 18-Oct-2001 2:00


Thank you 8) I wanted a server redirect (before sending content-type:...) your code works, but doesn't resolve the problem. must be related to a rebol platform bug on OSX.. something to do with the double process in cgi mode.. hope RT will fix that as OSX 10.1 is a real nice companion. again, thank you and have a nice day Will [warp--reboot--ch] On 17.10.2001 4:16, Kenneth LO <[kenlo--myrealbox--com]> wrote: