in reply to Turning off buffering ($|=1) doesn't work on Apache server
You forgot to specify which browser you're using :) Also, do you have some proxy in between (e.g. squid)? (it might be doing its own buffering...)
As of Apache-1.3.x, this is supposed to work, and in fact, it does work for me, when I test it with Firefox, or simply with telnet from the command line:
$ telnet localhost 80 Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. GET /cgi-bin/buffering-test.pl HTTP/1.0 HTTP/1.1 200 OK Date: Tue, 27 Feb 2007 13:03:09 GMT Server: Apache/1.3.37 (Unix) Connection: close Content-Type: text/html <html><head></head><body>START End </body></html> Connection closed by foreign host.
(5 secs pause in between "...START" and "End...")
|
|---|