nero has asked for the wisdom of the Perl Monks concerning the following question:

I've been trying for a while to get a server push splash page to work using the obscure 'multipart/x-mixed-replace;boundary=whatever' header in perl, but after hours of experimenting and frustration am finding it impossible to write a script that works.

I’ve searched the internet for information both about server push splash pages in perl and the header declaration but all of the information I can find is either incorrect or very vague.

I’ve also found a couple of examples but none of them work reliably. Also does anybody know if IE supports 'multipart/x-mixed-replace;boundary=whatever' because the one example I even got to slightly work only did so in Netscape.

Thanks in advance for any help or assistance you may be able to offer.

Replies are listed 'Best First'.
Re: Server Push Splash Page
by clintp (Curate) on Jun 10, 2001 at 02:19 UTC
    IE does not, in fact, support server push very well (if at all). When I was doing the portability tests for chapter 23 of Teach Yourself Perl, I discovered that IE 3 and 4 both lack this ability. I presume that IE 5 still does. Microsoft doesn't consider this a bug and doesn't really see the need to include this support.

    (In the second edition I've dropped the server push discussion...)

Re: Server Push Splash Page
by cforde (Monk) on Jun 10, 2001 at 02:36 UTC
    The problem isn't Perl. The problem is IE, up to V5 (I don't know about 5.5 or 6 beta) does not support multi-part mime server responses. Depending on how you want your splash to work, you might try something like this on your splash page:
    <meta HTTP-EQUIV="Refresh" Content="3;URL=...>
    This causes the page to be displayed for 3 seconds and then the specified URL is loaded.

    Have fun,
    Carl Forde