I've been wrestling for several months now with this issue in IE:

(IE thinks that ZIP sent from a script are corrupt when they are not).

However, I am quite certain that others have managed to use a script serve zip, ppt or PDF files to clients using IE, as I did just that from download.com a moment ago.

I am currently using IIS and a Windows-ized version of mod_rewrite to do URL rewriting so that IE in theory should not know that it is receiving a ZIP file from script. Nonetheless, the error occurs even with rewriting invoked.

Can anyone give me advice on how to do this? A tutotial, a newsgroup thread, anything would be useful...