Internet Explorer cannot download <filename> from www.domain.tld



http://www.frostjedi.com/terra/scripts/demo/download2.php

Whenever I get that page, I get the following error:

---------------------

Internet Explorer cannot download download2.php from www.frostjedi.com.

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 the source code to download2.php:

<?php
session_start();
header('Content-Type: application/vnd.ms-excel');
header('Content-Disposition: attachment; filename="emails.csv"');
?>
a
b
....

If session_start() is commented out, it works just fine. I've
narrowed the problem to a particular header that's being transmitted.
Namely, this one:

header('Cache-Control: no-store, no-cache, must-revalidate, post-
check=0, pre-check=0');

If you replace session_start() with that, you'll get the same error.
The only thing is... I'm not sure why that header is being added. I
can fix it by adding header('Cache-control: private');, but I'd still
like to know why it's being added in the first place.

Any ideas?
.



Relevant Pages

  • Re: Cannot open Word Doc after latest windows update
    ... When you try to download Microsoft Office documents from a server running ... Internet Explorer cannot download File.doc from ServerName. ... Internet Explorer was not able to open this Internet Site. ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • Re: https and file downloads
    ... >> I have a asp script that creates a text file for download. ... >> perfectly under http but breaks under https. ... >> Internet explorer was not able to open this Internet site. ...
    (microsoft.public.inetserver.asp.general)
  • Helper programs not operating from IE
    ... a new window will open and Adobe Acrobat will ... Now a "File Download" box will appear and then immediately warning ... message box saying "Internet Explorer cannot download "file.pdf" from ... Internet site. ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • Re: ISA is blocking certain file downloads
    ... Phillip Windell [MCP, MVP, CCNA] www.wandtv.com "Andy" wrote in message ... > If I right click the file and save as it says "Internet Explorer cannot download "xxxxx.swa" from XXXX.com Internet Explorer was unable to open this internet site. ... I couldn't download it via http either. ...
    (microsoft.public.isa)
  • Re: Hotmail Download problem
    ... I don't think this is a firewall issue. ... This seems to only be Office documents, because I sent one student a JPG and he could download it just fine, but if you send him a PPT, or DOC, it gives the error. ... | Internet Explorer was not able to open this Internet site. ...
    (microsoft.public.office.misc)