It seems that Internet Explorer 6.0 ignores MIME Content-Type:
multipart/mixed as defined by RFC 2183 (I believe it ignores
multipart MIME altogether). While browsers such as Netscape or
FireFox will perform just fine to the word of the specs. However, I
can't find anywhere in MSFT documentation that they DO NOT support
this standard.
My question is:
1. Assuming that Internet Explorer supports multi part MIME and specifically:
Content-Type: multipart/mixed, what is the way to implement it? I am
interested in (1) a sample code that will demonstrate IE 6.0 support
of multipart/mixed MIME format; and (2) an explanation of what's wrong
with the sample below.
2. Alternatively, if IE does not support multipart MIME, I am looking
for a workaround to accomplish the same effect by which the server
side sends a file download + a following HTML page in one HTTP
response. - please provide a sample code that demonstrates that.
Thanks for your help,
Ofer
Below an example with two part MIME. Part #1 has a file attachment
and part #2 is a HTML page. IE will not process this flow (nor
recognize its parts). FireFox will download the file and display the
html page.
---------------------------
MIME-version: 1.0
Content-Type: multipart/mixed; boundary=BoundaryString
--BoundaryString
Content-Type: application/x-msdownload;
Content-Transfer-Encoding: binary
Content-Disposition: attachment; filename=test.exe
Content-Length:1933
Binary code here of test.exe - to run this sample replace with actual
code - don't forget to update the length above
--BoundaryString
Content-Type: text/html
<html><body>
<center>Hello - This Mime part should display while, or following the
file Download</center>
</body></html>
--BoundaryString-- |