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

[REBOL] HTTP redirecting

From: warp::reboot::ch at: 7-Nov-2001 6:01

Hello, How do I quit a process generated by another process ? or I want to detect if a browser connecting to a server has some plug-ins and carry over this info thru cookie or (links and get). My idea is to first detect if cookies are enabled, so the sequence is the following: <%pre read-cookies read-cookies cgi-form: make object! [ ;-- Default form values. nocookie: "false" ] cgi: make cgi-form decode-cgi either system/options/cgi/request-method = "POST" [ input ][ either system/options/cgi/query-string [ system/options/cgi/query-string ][ "" ] ] ; check for cgi and cookie either error? try [cgi/nocookie] [ either error? try [cookie/nocookie] [ check: "false" ][ check: to-string copy cgi/nocookie ] ][ either error? try [cookie/nocookie] [ check: to-string copy cgi/nocookie ][ check: "cook" ] ] url-parammmm: none switch check [ "false" [ set-cookie/verbose "nocookie" "true" now + 24:00 "" "10.0.0.22" false http-redir http://10.0.0.22/c/z.t?nocookie=test ] "true" [ url-parammmm: "addtourl" ] "test" [ http-redir http://10.0.0.22/c/z.t?nocookie=true ] "cook" [ url-parammmm: "ok" ] ] %> <% print rejoin [ " cgi: " cgi/nocookie " / "check " urlprm: " url-parammmm] %> The question is: How do I quit the second cgi launched by the first one?? Thanks a lot Will Arp