W3C home > Mailing lists > Public > www-jigsaw@w3.org > July to August 1997

Multipart/x-mixed-replace

From: Nirmalkumar - Patil <npatil@cs.tamu.edu>
Date: Sat, 2 Aug 1997 00:10:11 -0500 (CDT)
Message-Id: <199708020510.AAA20035@dilbert.cs.tamu.edu>
To: www-jigsaw@w3.org

Hello All,

I am trying to have Jigsaw support the multipart/x-mixed-replace MIME type.
In order to be able to do this, I tried to obtain a reference to the 
DataOutputStream and directly write to the underlying stream ... 
However I end up screwing the headers for the HTTP response....

How do I get a reference to the DataOutputStream after the headers have been
written to the stream... so that i have only to write the delimiters
and the data between these to the stream.

is there a better or simpler way to do this ? Since I would like to sleep 
between segments of the mixed data... hence i don't see any other way rather 
than writing directly to the DataOutputStream to the client.  

........................................................................
server push example from Netscape's homepage

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

--ThisRandomString
Content-type: text/plain

Data for the first object.

// Sleep some interval

--ThisRandomString
Content-type: text/plain

Data for the second and last object.

--ThisRandomString--
........................................................................

Would appreciate any comments/help.

Thanks,
  Nirmal
Received on Saturday, 2 August 1997 01:12:23 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 9 April 2012 12:13:26 GMT