View Single Post
  #1 (permalink)  
Old 06-08-2009, 05:00 AM
Darren Syzling
Newsgroup Contributor
 
Posts: n/a
IE, IIS Dynamic compression and corrupt zip files

We have a download page which is sending files from a database down to a
browser. The web server is Windows Server 2003 SP2 with IIS6 the
application is an ASP.NET app running on .net 3.5. IIS is configured to
compress static files and dynamic pages - including the aspx extension.

When downloading a zip file from our site - which is subsequently also
compressed by IIS (yes unnecessarily) the zip file is corrupted when
downloaded by IE 6,7 and 8. Firefox, Safari, Google Chrome all handle
the download without issues.

We believe the correct http headers are being sent, along with the
typical cotent-disposition we're sending:
Content-Type application/x-zip-compressed (or application/zip)
Content-Encoding gzip

If the content-type is changed to 'application/octet-stream', IE then
handles the file correctly. In our application we specifically handle
this case but wondered if it had ever been reported or reproduced under IE?

The file is downloaded over a secure connection (SSL) if this makes any
difference to IE's behaviour and if anyone needs my metabase settings
along with a simple ironpython or c# aspx sample I can supply these to
recreate the problem.


Darren

Reply With Quote

 
Old 06-08-2009, 05:00 AM