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

[REBOL] Re: How to cgi redirect?

From: hallvard:ystad:helpinhand at: 24-Oct-2002 21:52

Hi Dixit Jason Cunliffe (16.10 24.10.2002):
>Hi Ed >[...] >Q2. If JavaScript is turned off, can you suggest a strategy to detect/handle >that? What do you suppose are the stats on JavaScript disabling? > >Q3. Is there any way to do the redirect without JavaScript dependency?
Sorry if I wasn't clear enough. But if you do a redirect with the HTTP headers, you don't need to worry about JS dependency. All browsers that support HTTP/1.0 will follow redirects for you. (Some might not though, homemade browsers, java browsers that explicitly are told not to...). Check the HTTP protocol specification if you need to: Second thought: do you need to do a redirect _after_ you have finished with the header? If you cannot detect whether or not you shall redirect before the HTTP header is written out, well, then my suggestion fails... ~H