Server Push

Rudi Breedenraedt ([email protected])
Mon, 6 Nov 1995 10:41:12 +0100


Hi all,

I'm trying to implement server-push using a NCSA 1.3 server.

In a help-file of Stephen Le Hunte about HTML I found some information
about how to implement a server-push cgi program.

The problem is that I tried his example program out, and Netscape 1.1N
just keeps waiting till the while file is loaded (which never happens)
before showing something.

Here's the program I tried (Unix script) :

#!/bin/sh
echo "Content-type: multipart/x-mixed-replace;boundary=ThisRandomString"
echo ""
echo "--ThisRandomString"
while true
do
echo "Content-type: text/html"
echo ""
echo "<h2>Processes on this machine updated every 5 seconds</h2>"
echo "time: "
date
echo "<p>"
echo "<pre>"
ps
echo "</pre>"
echo ""
echo "--ThisRandomString"
sleep 5
done

I would like to use this server-opush technique in a cgi-program
that looks up in a database (taking a while) and displays a 'please
wait' screen till the results are found, then - using server push -
changes the 'please wait' screen in the asked results.
I have already implemented this, but the problem is similar to
the above, Netscape just waits until the server closes the connection
(which happens only ones the query results are given), and then
fastly shows the wait screen and immediatly afterwards changes this
wait screen into the asked results.

What do I wrong, end how can I correct this ???

Thanx

Rudi Breedenraedt.