473,406 Members | 2,713 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

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

http://www.frostjedi.com/terra/scrip.../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?
Oct 29 '08 #1
1 7415
yawnmoth wrote:
http://www.frostjedi.com/terra/scrip.../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.
Known problem: MSIE not storing it in cache, and hence nnot downloadable.
The cache headers are probably from your session_start() (look at your ini
session settings, cache control is one of them).
--
Rik
Oct 30 '08 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Erik Ronne | last post by:
Hello Gurus I have an intranet web page with links to all kinds of Microsoft Word document that we use at my work, so my co-works can go to the web page when they need a special document....
1
by: Jesper Hermansen | last post by:
Hi! I'm making a system that will generate Winamp-playlists. To make it easy for the user to add a file to the list, I'm using <input type="file">. The problem with this is that I only get...
3
by: Wiktor Zychla | last post by:
I have a problem I cannot solve. My application hosts IE activex control. I follow the standard procedure: I just aximp shdocvw.dll. Note that this gives you two files: axshdocvw.dll and...
2
by: adios | last post by:
Hi, i'm currently working on web services using C#. i've used external DLL in my project. when i test the web service out, the page display an error msg - unable to load DLL (<filename>.dll) after...
2
by: Bill Roper | last post by:
Did you know that the #include directive when using angle brackets works substantially differently in VC7 than it did in VC6? It used to be that the reference for the additional include...
1
by: Joel Finkel | last post by:
Folks, I am unable to execute any ASPX files on a Windows 2000 Server, running as a Primary Domain Controller. The error is "Error BC31019: Unable to write to output file '<filename>'" By...
2
by: DeanL | last post by:
Hi Guys, I've been trawling through this group for an answer to this but can't find one that works. I have an Access 97 db sitting on a Novell server that is accessed via a front end with...
3
by: George0726 | last post by:
This happens regardless of the Version of Access. Users accessing a database on a shared folder get the "Couldn't use <filename>; file already in use." Everyone without exception has access to...
7
by: Danny | last post by:
Hello: I would like to develop a browser extension, or whatever such a thing is classified as, that would allow a user of IE6, and possibly IE7, to switch between a live and development page. ...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.