Multipart/mixed in IE

I have the following code sample written in C for a CGI.  I want to download a file (a zipped file for the same of argument in this example) and at the same time show a new page.
#include <stdio.h>
#include <stdlib.h>

void main()
      printf("Content-type: application/x-compressed\n\n");
      printf("this is the first data\n\n");
      printf("Content-type: text/plain\n\n");
      printf("this is the display data\n\n");

This all works fine when running any Netscape browser than I've tried.  It prompts me to save the file and then displays the new page.

Different story in IE... it shows the following in the browser:
Content-type: application/x-compressed

this is the first data

Content-type: text/plain

this is the display data


It doesn't parse the multipart stream.

1.  Does IE support the multipart/mixed MIME type?
2.  If so, what's wrong with my code?
3.  If not, what other options do I have to accomplish the same thing.  I've thought about displaying the web page first with a META refresh tag set to 0 seconds that points to the file, but this (for security reasons) is not at all a good solution.

Any help would be greatly appreciated.
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Shoulnd there be a space after the : ?
like this:
printf("Content-type: multipart/mixed;boundary=--abcdefg\n\n");

clc050198Author Commented:
I have one reference that says yes, and one that says no.  Either way it doesn't work.
Answer to question nr 1:
No, IE does not support the multipart/mixed MIME type

The Ultimate Tool Kit for Technolgy Solution Provi

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy for valuable how-to assets including sample agreements, checklists, flowcharts, and more!

There seems to be a bug in IE 4.0 with this. It worked fine for me on IE 4.01, when I used a mime-type of bougs/file.
clc050198Author Commented:
percyn.... what server were you using to get it to work with IE4.01?  For me it doesn't work under 4.01 or 4.0.  I'm using IIS as a server.
IIS 4.0
Try to put quotes in your boundary string like this :

Content-Type: multipart/mixed;

See you

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.