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

redirecting CGI HTML output

 [1/6] from: sharriff:aina:med-iq at: 24-Oct-2000 10:35


can someone tell me how to instruct a browser to display a certain URL from a CGI script without being generated? I can generate the URL but it somehow brings a disorder in my frames. best regards Sharriff Aina med.iq information & quality in healthcare AG Gutenbergstr. 42 41564 Kaarst

 [2/6] from: al:bri:xtra at: 24-Oct-2000 22:48


Sharriff wrote:
> can someone tell me how to instruct a browser to display a certain URL
from a CGI script without being generated? I can generate the URL but it somehow brings a disorder in my frames. You could try using the TARGET attribute for a hyper link, or META-REFRESH. For an example of both of these, check out the index.html pages on my site. Andrew Martin ICQ: 26227169 http://members.nbci.com/AndrewMartin/

 [3/6] from: sharriff:aina:med-iq at: 24-Oct-2000 11:07


Hi Andrew! actually I meant directly from a CGI script, insted of "PRINTing" the output I just want to point the browser to a specific URL or framset Sharriff Aina med.iq information & quality in healthcare AG Gutenbergstr. 42 "Andrew Martin" An: <[rebol-list--rebol--com]> <[Al--Bri--xtra]. Kopie: co.nz> Thema: [REBOL] Re: redirecting CGI HTML output Gesendet von: rebol-bounce@ rebol.com 24.10.00 23:48 Bitte antworten an rebol-list Sharriff wrote:
> can someone tell me how to instruct a browser to display a certain URL
from a CGI script without being generated? I can generate the URL but it somehow brings a disorder in my frames. You could try using the TARGET attribute for a hyper link, or META-REFRESH. For an example of both of these, check out the index.html pages on my site. Andrew Martin ICQ: 26227169 http://members.nbci.com/AndrewMartin/

 [4/6] from: coussement:c:itc:mil:be at: 24-Oct-2000 14:26


Hi Aina: Did you try the 'browse function from R/View ?
>> browse "http://www.rebol.com"
and with args (kiosk mode in this case) :
>> browse "-k http://www.rebol.com"
Hope it helps ! Christophe Coussement

 [5/6] from: sharriff::aina::med-iq::de at: 24-Oct-2000 14:07


Hi Cristophe! The problem is that I want it to work from my CGI script , thanks for the info about VIEW though.. Best regards Sharriff Aina med.iq information & quality in healthcare AG Gutenbergstr. 42 4 CRS - Psy Sel/SPO, An: [rebol-list--rebol--com] COUSSEMENT Kopie: Christophe, CPN Thema: [REBOL] Re: redirecting CGI HTML output <[COUSSEMENT--C--I] TC.mil.be> Gesendet von: [rebol-bounce--re] bol.com 24.10.00 13:26 Bitte antworten an rebol-list Hi Aina: Did you try the 'browse function from R/View ?
>> browse "http://www.rebol.com"
and with args (kiosk mode in this case) :
>> browse "-k http://www.rebol.com"
Hope it helps ! Christophe Coussement

 [6/6] 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: