RE: cool site

DEXTER Scott (
Fri, 03 Nov 95 11:08:00 PST

So how is that little animation done...
The source points to a cgi dir???????????????????????????

its called server-push. for the complete discussion :

but basically, a cgi-script pumps data to the browser using a mime
encoding that tells the browser to overwrite the previous data. the mime
encoding is multipart/x-mixed-replace, and you specify a random string as
the boundary between pieces, so the entire line looks like this:


so in your script (be it sh, perl or whatever), you send along the data
like this:

Content-type: multipart/x-mixed-replace;boundary=boundary

Content-type:<type of data to follow>
data piece
Content-type:<type of data to follow>
data piece

with the above encoding (x-mixed-replace) the next data piece will be
placed over the top of the current, so you can get cheap animation.

also note that you (have to) specify the Content-type for each data
piece, that can work to your advantage - send bits of text, images,
sounds, whatever, and have fun.

that help?

got an application for it? need help with that?

( or ... whatever floats your skirt)