I'm attaching a file to an http response using this header:
Content-Disposition: attachment; filename="example.doc"
It works perfectly unless I try to download the file over HTTPS using Internet Explorer. IE ignores the Content-Disposition header and just tries to download the server-side script file (classic ASP) and fails.
I've tried all kinds of variations of headers (mostly cache-related) with no success at all.
How can I get IE to recognize the attached file?
Edit: The download request is sent by setting the src attribute of an iframe. Downloads work perfectly when not using an iframe.
Edit 2: When the download confirmation dialog appears I can click Open to open the file in IE, but saving the file doesn't work. The error:
Unable to download download.asp from server.com.
Unable to open this Internet site. The requested site is either unavailable or cannot be found. Please try again later.
Maybe try this workaround?