in reply to Re: how to implement
in thread how to implement "tail -f" using CGI
and the browser still waits until all 20 numbers are outputted before returning the page.#!/usr/bin/perl $|=1; print "Content-type: text/html\n\n"; for (1..20) { print "$_<br>\n"; sleep 2; }
This is under IE 5.0, Perl 5.005 and Apache 1.3.19.
Update: If I increase the range to something higher, I find that around 40 or so, it's starts to output. Apache itself must be doing some buffering ...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Buffering in IE and Netscape
by bjelli (Pilgrim) on May 17, 2001 at 12:40 UTC | |
|
Re: Re: Re: how to implement
by Hero Zzyzzx (Curate) on May 17, 2001 at 04:39 UTC | |
by mr.nick (Chaplain) on May 17, 2001 at 05:32 UTC | |
by mpolo (Chaplain) on May 17, 2001 at 10:13 UTC |