<?xml version="1.0" encoding="utf-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Making IE Accept File Downloads</title>
	<atom:link href="http://joseph.randomnetworks.com/archives/2004/10/01/making-ie-accept-file-downloads/feed/" rel="self" type="application/rss+xml" />
	<link>http://joseph.randomnetworks.com/archives/2004/10/01/making-ie-accept-file-downloads/</link>
	<description>cat /dev/random</description>
	<lastBuildDate>Sat, 04 Jul 2009 08:07:38 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9-rare</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Glen H. Barratt</title>
		<link>http://joseph.randomnetworks.com/archives/2004/10/01/making-ie-accept-file-downloads/comment-page-2/#comment-828623</link>
		<dc:creator>Glen H. Barratt</dc:creator>
		<pubDate>Sat, 04 Apr 2009 00:42:52 +0000</pubDate>
		<guid isPermaLink="false">http://joseph.randomnetworks.com/archives/2004/10/01/making-ie-accept-file-downloads/#comment-828623</guid>
		<description>Thank you so much. Your fix was the only one that worked for me. The &quot;if(strpos($_SERVER[&#039;HTTP_USER_AGENT&#039;], &#039;MSIE&#039;)) session_cache_limiter(&quot;public&quot;);&quot; that is.</description>
		<content:encoded><![CDATA[<p>Thank you so much. Your fix was the only one that worked for me. The &#8220;if(strpos($_SERVER['HTTP_USER_AGENT'], &#8216;MSIE&#8217;)) session_cache_limiter(&#8220;public&#8221;);&#8221; that is.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jody</title>
		<link>http://joseph.randomnetworks.com/archives/2004/10/01/making-ie-accept-file-downloads/comment-page-2/#comment-822818</link>
		<dc:creator>Jody</dc:creator>
		<pubDate>Tue, 31 Mar 2009 23:35:09 +0000</pubDate>
		<guid isPermaLink="false">http://joseph.randomnetworks.com/archives/2004/10/01/making-ie-accept-file-downloads/#comment-822818</guid>
		<description>Thanks Duncan, your method works for my site which uses SSL that annoys the crap out of me. For both IE and FF&gt; :) Whee now I can work better!</description>
		<content:encoded><![CDATA[<p>Thanks Duncan, your method works for my site which uses SSL that annoys the crap out of me. For both IE and FF&gt; :) Whee now I can work better!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gordon</title>
		<link>http://joseph.randomnetworks.com/archives/2004/10/01/making-ie-accept-file-downloads/comment-page-2/#comment-805605</link>
		<dc:creator>Gordon</dc:creator>
		<pubDate>Wed, 25 Mar 2009 19:22:45 +0000</pubDate>
		<guid isPermaLink="false">http://joseph.randomnetworks.com/archives/2004/10/01/making-ie-accept-file-downloads/#comment-805605</guid>
		<description>I&#039;m still having trouble after looking through and trying your suggestion and those in the comments. I&#039;m running ASP.NET 2.0, IIS, Win2003.

I&#039;m generating a CSV file for users to download when they click a button on a page (the page is SiteReports.aspx). Without SSL, it works great in FF and IE7. With SSL (which I need to do), it works great in FF, but in IE7:

-&gt; If I have ContentType set to &#039;application/octet-stream&#039;, I get a file download prompt, but the filename I gave it is replaced with &#039;SiteReports_aspx&#039;, with no extension, so if they user chooses &#039;open&#039; from the download prompt, it opens as plain text within IE.
-&gt; If I have ContentType set to anything else, I get &#039;Internet Explorer cannot download SiteReports.aspx from etc...&#039;.

I don&#039;t understand why it tries to download something with a different filename than the one I specified in Content-Disposition. I&#039;m currently setting up my headers like this:

Response.Clear();
Response.Charset = String.Empty;
Response.ContentType = &quot;application/octet-stream&quot;;
Response.AddHeader(&quot;Pragma&quot;, &quot;public&quot;);
Response.AddHeader(&quot;Cache-Control&quot;, &quot;max-age=10&quot;);
Response.AddHeader(&quot;Content-Disposition&quot;, &quot;attachment; filename=test.csv&quot;);
Response.Write(fileContents);
Response.End();

Any ideas? Thanks.</description>
		<content:encoded><![CDATA[<p>I&#8217;m still having trouble after looking through and trying your suggestion and those in the comments. I&#8217;m running ASP.NET 2.0, IIS, Win2003.</p>
<p>I&#8217;m generating a CSV file for users to download when they click a button on a page (the page is SiteReports.aspx). Without SSL, it works great in FF and IE7. With SSL (which I need to do), it works great in FF, but in IE7:</p>
<p>-&gt; If I have ContentType set to &#8216;application/octet-stream&#8217;, I get a file download prompt, but the filename I gave it is replaced with &#8216;SiteReports_aspx&#8217;, with no extension, so if they user chooses &#8216;open&#8217; from the download prompt, it opens as plain text within IE.<br />
-&gt; If I have ContentType set to anything else, I get &#8216;Internet Explorer cannot download SiteReports.aspx from etc&#8230;&#8217;.</p>
<p>I don&#8217;t understand why it tries to download something with a different filename than the one I specified in Content-Disposition. I&#8217;m currently setting up my headers like this:</p>
<p>Response.Clear();<br />
Response.Charset = String.Empty;<br />
Response.ContentType = &#8220;application/octet-stream&#8221;;<br />
Response.AddHeader(&#8220;Pragma&#8221;, &#8220;public&#8221;);<br />
Response.AddHeader(&#8220;Cache-Control&#8221;, &#8220;max-age=10&#8243;);<br />
Response.AddHeader(&#8220;Content-Disposition&#8221;, &#8220;attachment; filename=test.csv&#8221;);<br />
Response.Write(fileContents);<br />
Response.End();</p>
<p>Any ideas? Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: stephan</title>
		<link>http://joseph.randomnetworks.com/archives/2004/10/01/making-ie-accept-file-downloads/comment-page-2/#comment-799922</link>
		<dc:creator>stephan</dc:creator>
		<pubDate>Mon, 23 Mar 2009 13:46:30 +0000</pubDate>
		<guid isPermaLink="false">http://joseph.randomnetworks.com/archives/2004/10/01/making-ie-accept-file-downloads/#comment-799922</guid>
		<description>thanks for that. additionally the particular IE&#039;s here are only happy if content-type header offers encoding=... as well.

e.g.
header(&#039;Content-type: application/octet-stream; encoding=UTF-8&#039;);</description>
		<content:encoded><![CDATA[<p>thanks for that. additionally the particular IE&#8217;s here are only happy if content-type header offers encoding=&#8230; as well.</p>
<p>e.g.<br />
header(&#8216;Content-type: application/octet-stream; encoding=UTF-8&#8242;);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sandy</title>
		<link>http://joseph.randomnetworks.com/archives/2004/10/01/making-ie-accept-file-downloads/comment-page-2/#comment-773427</link>
		<dc:creator>sandy</dc:creator>
		<pubDate>Tue, 10 Mar 2009 01:13:28 +0000</pubDate>
		<guid isPermaLink="false">http://joseph.randomnetworks.com/archives/2004/10/01/making-ie-accept-file-downloads/#comment-773427</guid>
		<description>I am running into similar problem and tried all the combination given in this post but alas!
I have asp page over SSL and trying to generate the CSV file but not working. Any help?
esponse.Clear
				Response.AddHeader &quot;Pragma: public&quot;
				Response.AddHeader &quot;Cache-Control: no-store, no-cache, no-transform, must-revalidate, private&quot;;
				Response.AddHeader &quot;Title&quot;, &quot;My Report Results&quot;
				Response.ContentType = &quot;text/csv&quot;
				Response.AddHeader &quot;Content-disposition&quot;, &quot;Attachment;filename=Myreport.csv&quot;</description>
		<content:encoded><![CDATA[<p>I am running into similar problem and tried all the combination given in this post but alas!<br />
I have asp page over SSL and trying to generate the CSV file but not working. Any help?<br />
esponse.Clear<br />
				Response.AddHeader &#8220;Pragma: public&#8221;<br />
				Response.AddHeader &#8220;Cache-Control: no-store, no-cache, no-transform, must-revalidate, private&#8221;;<br />
				Response.AddHeader &#8220;Title&#8221;, &#8220;My Report Results&#8221;<br />
				Response.ContentType = &#8220;text/csv&#8221;<br />
				Response.AddHeader &#8220;Content-disposition&#8221;, &#8220;Attachment;filename=Myreport.csv&#8221;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pkachhia</title>
		<link>http://joseph.randomnetworks.com/archives/2004/10/01/making-ie-accept-file-downloads/comment-page-2/#comment-754943</link>
		<dc:creator>pkachhia</dc:creator>
		<pubDate>Mon, 23 Feb 2009 11:09:24 +0000</pubDate>
		<guid isPermaLink="false">http://joseph.randomnetworks.com/archives/2004/10/01/making-ie-accept-file-downloads/#comment-754943</guid>
		<description>Hi,
I have the problem which is something related to this post.
I have trying to download the file using the download code.
It&#039;s work fine in IE7, Mozilla, chrome but it is not works in IE6.
The most socking thing is , few days ago , it is working in all the browsers, even in IE6. But today i got this error.When I have trying to use IE6 for download it shows the following message: 
&quot;Internet explorer was not able to open this Internet site. The requested site is either unavailable or cannot be found. Please try again later.&quot;
Can any body help me?

Regards,
Pkachhia</description>
		<content:encoded><![CDATA[<p>Hi,<br />
I have the problem which is something related to this post.<br />
I have trying to download the file using the download code.<br />
It&#8217;s work fine in IE7, Mozilla, chrome but it is not works in IE6.<br />
The most socking thing is , few days ago , it is working in all the browsers, even in IE6. But today i got this error.When I have trying to use IE6 for download it shows the following message:<br />
&#8220;Internet explorer was not able to open this Internet site. The requested site is either unavailable or cannot be found. Please try again later.&#8221;<br />
Can any body help me?</p>
<p>Regards,<br />
Pkachhia</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Meesh</title>
		<link>http://joseph.randomnetworks.com/archives/2004/10/01/making-ie-accept-file-downloads/comment-page-2/#comment-744312</link>
		<dc:creator>Meesh</dc:creator>
		<pubDate>Tue, 03 Feb 2009 21:10:46 +0000</pubDate>
		<guid isPermaLink="false">http://joseph.randomnetworks.com/archives/2004/10/01/making-ie-accept-file-downloads/#comment-744312</guid>
		<description>Thank you thank you thank you!!!! This saved me a massive headache.. well, I had one starting until I found your helpful article.. your solution worked.
Gracias merci and danke schoen!!!</description>
		<content:encoded><![CDATA[<p>Thank you thank you thank you!!!! This saved me a massive headache.. well, I had one starting until I found your helpful article.. your solution worked.<br />
Gracias merci and danke schoen!!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andy</title>
		<link>http://joseph.randomnetworks.com/archives/2004/10/01/making-ie-accept-file-downloads/comment-page-2/#comment-720894</link>
		<dc:creator>Andy</dc:creator>
		<pubDate>Mon, 29 Dec 2008 09:30:52 +0000</pubDate>
		<guid isPermaLink="false">http://joseph.randomnetworks.com/archives/2004/10/01/making-ie-accept-file-downloads/#comment-720894</guid>
		<description></description>
		<content:encoded><![CDATA[<p>Hi,<br />
I am facing problem while opening a text file using IE6. It gives an error message like “C:\Documents and Settings\\Local Settings\Temporary Internet Files\Content.IE5\\file[1].csv could not be found.  </p>
<p>After doing google I came to know that it is a know issue with IE6 (<a href="http://www.webmasterworld.com/forum88/5891.htm" rel="nofollow">http://www.webmasterworld.com/forum88/5891.htm</a> ) But mentioned fix did not work in my case. This is how I am setting http header:</p>
<p>        header(&#8220;Cache-Control: &#8220;);<br />
        header(&#8220;Pragma: &#8220;);<br />
        header(&#8216;Content-type: application/octet-stream&#8217;);<br />
        header(&#8216;Content-Disposition: attachment; filename=&#8221;&#8216; . $file . &#8216;.txt&#8221;&#8216;); //default extension to .txt for easier open)</p>
<p>But problem still persist. One workaround is to replace a .txt format to .doc / .rtf, In that case I am able to open file using MS word, but issue will be when someone trying to open a file where don’t have MS word. </p>
<p>Please Help. I also tried with all the combination for header Pragma and Cache-Control mentioned on this page.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jason</title>
		<link>http://joseph.randomnetworks.com/archives/2004/10/01/making-ie-accept-file-downloads/comment-page-2/#comment-712060</link>
		<dc:creator>Jason</dc:creator>
		<pubDate>Wed, 17 Dec 2008 07:21:12 +0000</pubDate>
		<guid isPermaLink="false">http://joseph.randomnetworks.com/archives/2004/10/01/making-ie-accept-file-downloads/#comment-712060</guid>
		<description>You star! That one completely stumped me... You&#039;re a bloody legend.</description>
		<content:encoded><![CDATA[<p>You star! That one completely stumped me&#8230; You&#8217;re a bloody legend.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jan</title>
		<link>http://joseph.randomnetworks.com/archives/2004/10/01/making-ie-accept-file-downloads/comment-page-2/#comment-700634</link>
		<dc:creator>jan</dc:creator>
		<pubDate>Tue, 25 Nov 2008 13:11:43 +0000</pubDate>
		<guid isPermaLink="false">http://joseph.randomnetworks.com/archives/2004/10/01/making-ie-accept-file-downloads/#comment-700634</guid>
		<description>Thanks alot ... been looking for this for ages!! 

Kind regards,</description>
		<content:encoded><![CDATA[<p>Thanks alot &#8230; been looking for this for ages!! </p>
<p>Kind regards,</p>
]]></content:encoded>
	</item>
</channel>
</rss>
