W3C home > Mailing lists > Public > www-talk@w3.org > November to December 2000

Re: using MIME multipart/mixed

From: Pravin Singhal <pravin@slamdunknetworks.com>
Date: Fri, 29 Dec 2000 01:47:49 -0800
Message-ID: <002a01c0717c$68254410$3bd8b018@stcla1.sfba.home.com>
To: "Fish" <fish@infidels.org>, <www-talk@w3.org>
The request from the client is a GET request. The headers from the request
are as follows:

User-Agent: Mozilla/4.0 (compatible; MSIE 5.0; Windows NT; DigExt)
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,
application/vnd.ms-excel, application/msword, application/vnd.ms-powerpoint,
application/x-comet, */*
Host: localhost:8080
Accept-Encoding: gzip, deflate
Accept-Language: en-us
Connection: Keep-Alive


The server sends a multipart/mixed document.
I have a sample servlet that sets the following properties for the
HttpServletResponse followed by the body.
The content-length is set correclty to the size of the body.

MIME-Version: 1.0
Content-Type: multipart/mixed;boundary=D8119DDD2D264D4480E57277
Content-Length: <length of the stream>

--D8119DDD2D264D4480E57277
Content-Type: application/octet-stream
Content-Disposition: attachment; filename="header.hdr"
Content-ID: <hdr.GetMultipart@c682537-b.slamdunknetworks.com>

This is a sample header

pravin

--D8119DDD2D264D4480E57277
Content-Type: application/octet-stream
Content-Disposition: attachment; filename="content.pld"
Content-ID: <content.GetMultipart@c682537-b.slamdunknetworks.com>

This is a sample content body.

--D8119DDD2D264D4480E57277--


As mentioned earlier, Netscape prompts twice to save the contents in
header.hdr and contents.pld
IE simply displays complete body including the multipart boundary strings.

Any help will be highly appreciated.

Thanks,

Pravin.


----- Original Message -----
From: Fish <fish@infidels.org>
To: <www-talk@w3.org>
Cc: Pravin Singhal <pravin@slamdunknetworks.com>
Sent: Thursday, December 28, 2000 11:56 PM
Subject: RE: using MIME multipart/mixed


> > Hi
>
> Hello.
>
> > How can I send 2 files from the server in one stream
> > (in one request from the client)? I have been trying to
> > achieve this using multipart/mixed format. I am able
> > to do this with Netscape browser but not with IE.
> > Can IE handle multipart/mixed message from the server
> > correctly?
>
> I don't know for sure, but I would suspect so.
>
> > The server is sending a Content-Type as multipart/mixed.
> > The message consists of 2 body parts and each has
> > a Content-Type set to octet-stream. Netscape prompts
> > the file dialog twice and for each file get the name from
> > Content-Disposition of each body part (and this is the
> > desired behavior by me).
> >
> > It seems IE fails to understand the message and
> > simply displays the whole message with all the
> > headers etc. RFC 2616 (HTTP 1.1) states "In
> > general, an HTTP user agent SHOULD follow the
> > same or similar behavior as an MIME user agent
> > would upon receipt of a multipart type."
> >
> > Is this a known bug (non compliance with HTTP
> > protocol) with IE( 5.0 and 5.5) or I am doing
> > something stupid?
>
> Hard to say without seeing the actual request/response being
> sent.
>
> > Any help will be highly appreciated.
>
> If you could let us see the actual request that your server
> received and the actual response that your server sent (minus
> the actual content of course), we might be in a better position
> to help you.
>
> > Thanks
>
> You're very welcome.
>
> > Pravin Singhal.
> >
> > Please also reply to pravin@slamdunknetworks.com
>
> --
> "Fish" (David B. Trout)
>    fish@infidels.org
>
Received on Friday, 29 December 2000 04:37:11 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 27 October 2010 18:14:24 GMT