[REBOL] Re: Rebol as cgi
From: allen:rebolforces at: 1-Nov-2000 1:39
----- Original Message -----
From: "Will Arp" <[warp--reboot--ch]>
To: <[rebol-list--rebol--com]>
Sent: Tuesday, October 31, 2000 11:45 PM
Subject: [REBOL] Re: Rebol as cgi
> Is it something to do with header : "Transfer-Encoding: chunked"
>
> Where do I set this ?
>
> > Hello all 8)
> >
> > Well sorry if this info is already somewhere but I couldn't find it.
> >
> > How do I make so that content returned from a cgi are showed in the
browser
> > as they arrive instead of waiting for the cgi to finish before seeing
the
> > results in the browser ??
Hi Will,
When you print in cgi, the contents are buffered before sending to the
browser, the output buffer appears to be very small though. So make sure you
print out enough for the browser to start displaying the page before the
time consuming processes are started.
For an example to prove that this works, I wrote a quick REBOL cgi script.
http://www.rebolforces.com/cgi-bin/chunks.cgi
Cheers,
Allen K