When I invoke the following Perl script from a Sun machine running Netscape
server, my client browser sees several successively loaded pages.  When I
request the same script from an Apache Win32 web server, my Netscape client
only 'sees' one page (the last one).  I have added the line;

multipart/x-mixed-replace

to the mimes.type config file, and restarted Apache, with no change.  As
well, I came across the document 'Apache 1.3 URL rewriting guide' at
apache.org that demonstrates the use of multiprat/x-mixed-replace, but I
can't figure out from that what I'm doing wrong.

any help would be greatly appreciated.

#!c:\perl\bin\perl

select(STDOUT);
$| = 1; #unbuffer output for STDOUT

#works with netscape server on Sun, but not on apache for win32
print "Content-type: multipart/x-mixed-replace;boundary=End\n";

for ($ctr = 0; $ctr < 5; $ctr++) {

print
"
--End
Content-type: text/html

<HTML>
<BODY>
<P>Here's server push number <H3>$ctr</H3> message.</P>
</BODY>
</HTML>
--End
";

#replace '--End' with '--End--' (two lines above), gives a different result

   sleep (5);

}



---
You are currently subscribed to perl-win32-users as: [archive@jab.org]
To unsubscribe, forward this message to
         [EMAIL PROTECTED]
For non-automated Mailing List support, send email to  
         [EMAIL PROTECTED]

Reply via email to