"Internet Explorer cannot download [file] from [server]. Internet Explorer was not able to open this Internet site. The requested site is either unavailable or cannot be found. Please try again later."
Here's a screen shot of the error from IE8:
With a little digging, I tracked down the following support pages on microsoft.com that explain the problem:
- http://support.microsoft.com/kb/316431 -- Internet Explorer is unable to open Office documents from an SSL Web site.
- http://support.microsoft.com/kb/812935 -- "Internet Explorer Cannot Download" Error Message When You Use an HTTPS URL to Open an Office Document or PDF File
In my case, the solution to this issue was to remove the Pragma header in my HTTP response. In PHP, I forcefully unset the Pragma header with the following code-snippet:
header("Pragma: ");
This successfully clears the Pragma header in my responses, and all is well. With this tweak, IE7 and 8 correctly handle my file downloads.


Did you find this post helpful, or at least, interesting?