: Apache and server push

: Apache and server push

Post by Mirko Casert » Wed, 30 Oct 1996 04:00:00

I was wondering if Apache supports server-side-push.

I have the following problem: a cgi (perl) script catches the output
of a ping command from a pipe and I wish to see the output on the web
page in real time but it seems that Apache buffers the document until
the script dies.

I have also tried to set the $| special variable so that perl flushes
STDOUT after each print statement but it still doesn't work.

Here is the source code for that part of the script:

open (PING, "ping $hostname |");
    print "<pre>\n";
    print while (<PING>);
    print "</pre>\n";
close (PING);

Any ideas? Please, when replying do a CC at my email address as this
is quite an urgent thing I have to solve. Many thanks in advance.

Mirko Caserta

PGP public key available


1. Server Side Push with Apache

I am having some difficulties in setting up a server side push using
Apache.  I have set the options in the access.conf:

Options MultiViews

and I have the following little script:

echo "HTTP/1.0 200"
echo "Content-type: multipart/x-mixed-replace;boundary=---ThisRandomString---"
echo ""
echo "---ThisRandomString---"
while true
echo "Content-type: text/html"
echo ""
echo "<h2>Processes on this machine updated every 5 seconds</h2>"
echo "time: "
echo "<p>"
echo "<plaintext>"
ps -el
echo "---ThisRandomString---"
sleep 5

This doesn't work at all.  Nothing shows up at all.  This originall came from
Netscape's web site.

If anybody has any solution to my problem please let me know.



                      ,\<.     http://www.cs.usask.ca/undergrads/mtt142
____________________(o)/(o)    U. of S. Computer Sciences

  If you are writing about nothing, are you not writing about something?

2. Multilink PPP for Kernel 2.3.29+

3. Apache, Netscape and server pushes

4. HPUX 10.X clients to NT DHCP Server

5. Apache 1.1.1 and nph scripts (server-push)..

6. Compile kernel 1.3.x under 1.2.13?

7. Apache to 'broadcast' a server push stream

8. Major Bullshit while Installing Linux Redhat 2.6

9. Server Push with Apache

10. Cannot get Server Push via Apache to work

11. Apache server-push animation

12. server push buffer problems with NCSA and Apache

13. HELP! Apache and server push.