W3C home > Mailing lists > Public > www-lib@w3.org > July to September 1999

handling multipart

From: Lex Spoon <lex@cc.gatech.edu>
Date: Mon, 19 Jul 1999 13:14:41 -0400 (EDT)
Message-Id: <199907191714.NAA27316@cleon.cc.gatech.edu>
To: www-lib@w3.org
The release notes briefly say that libwww handles multipart responses, and 
a note or two from the archives says "yeah, it's supported".  I can even
see how the multipart parser can get fired by registering the right
conversion function for "multipart/*".  However, how does one deal 
with the multipart data itself?

From a look at the parser, at appears that all the parts of the body
are concatenated into the target stream.  This doesn't really seem like
the best way to deal with the data, though--if it's multipart data,
it would be nice to actually deal with the multiple parts separately.

Furthermore, I've looked at the example range.c, but I can't see how
to generalize it to a case where there are multiple *complete* parts
of the document, as opposed to multiple partial parts followed
by the whole thing.

So what I'm really after is this: is there a way to set up a handler
that can respond to individual message parts as they arrive?  The
particular application I have in mind would treat the early parts
as initial versions of a web page, which then get automatically
updated over time.  But a general answer would be just fine.


Received on Monday, 19 July 1999 13:14:44 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:33:51 UTC