<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
    xmlns:dc="http://purl.org/dc/elements/1.1/"
     xmlns:admin="http://webns.net/mvcb/"
     xmlns:content="http://purl.org/rss/1.0/modules/content/"
     xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
	<channel> 

	<title>Comments on: Firefox downloads custom 404 under IIS</title>
	<link>http://ask.metafilter.com/17761/Firefox-downloads-custom-404-under-IIS/</link>
	<description>Comments on Ask MetaFilter post Firefox downloads custom 404 under IIS</description>
	<pubDate>Wed, 20 Apr 2005 15:27:52 -0800</pubDate>
	<lastBuildDate>Wed, 20 Apr 2005 15:27:52 -0800</lastBuildDate>
	<language>en-us</language>
	<docs>http://blogs.law.harvard.edu/tech/rss</docs>
	<ttl>60</ttl>

	<item>
		<title>Question: Firefox downloads custom 404 under IIS</title>
		<link>http://ask.metafilter.com/17761/Firefox-downloads-custom-404-under-IIS</link>	
		<description>My custom 404 error page under IIS loads fine in IE, but firefox tries to download it instead of displaying it. &lt;br /&gt;&lt;br /&gt; I&apos;m guessing something to do with MIME type? &lt;br&gt;
&lt;br&gt;
Also, nonexistant .php files don&apos;t get a 404 under either browser, but instead return &quot;No input file specified.&quot; &lt;br&gt;
&lt;br&gt;
Oh, IIS, how do I love thee, let me count the ways.</description>
		<guid isPermaLink="false">post:ask.metafilter.com,2005:site.17761</guid>
		<pubDate>Wed, 20 Apr 2005 15:17:59 -0800</pubDate>
		<dc:creator>CaptApollo</dc:creator>
		
			<category>IIS</category>
		
			<category>Firefox</category>
		
			<category>404error</category>
		
			<category>custom404</category>
		
	</item> <item>
		<title>By: gentle</title>
		<link>http://ask.metafilter.com/17761/Firefox-downloads-custom-404-under-IIS#296485</link>	
		<description>IE will often try to display the page as HTML regardless of the content type, whereas Firefox is more loyal to the HTTP headers. What does &quot;&lt;a href=&quot;http://curl.haxx.se/&quot;&gt;curl&lt;/a&gt; -I &lt;i&gt;url&lt;/i&gt;&quot; show?&lt;br&gt;
&lt;br&gt;
As for the problem with non-existent files, I believe this is PHP&apos;s usual response when a requested file does not exist; what you need is to make IIS do the existence checking &lt;i&gt;before&lt;/i&gt; it invokes PHP. That&apos;s what Apache, Lighttpd and other (better) web servers do.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2005:site.17761-296485</guid>
		<pubDate>Wed, 20 Apr 2005 15:27:52 -0800</pubDate>
		<dc:creator>gentle</dc:creator>
	</item><item>
		<title>By: RustyBrooks</title>
		<link>http://ask.metafilter.com/17761/Firefox-downloads-custom-404-under-IIS#296487</link>	
		<description>% telnet www.mydomain.com 80&lt;br&gt;
GET /nonexistentpage.html HTTP/1.1&lt;br&gt;
Host: www.mydomain.com&lt;br&gt;
&lt;br&gt;
server sends back:&lt;br&gt;
HTTP/1.1 200 OK&lt;br&gt;
Date: Wed, 20 Apr 2005 22:19:12 GMT&lt;br&gt;
Server: AOLserver/3.5.1&lt;br&gt;
MIME-Version: 1.0&lt;br&gt;
Content-Type: text/html&lt;br&gt;
Content-Length: 2260&lt;br&gt;
X-Cache: MISS from www.rustybrooks.com&lt;br&gt;
Connection: close&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
You can do something similar for yourself on your server (using the right host, port, etc).  It&apos;ll tell you the mime type it&apos;s returning.&lt;br&gt;
&lt;br&gt;
IE often ignores the mime type and decides to interpret the data instead to see if it can figure out what it is. So yeah, it&apos;ll sometimes paper over such problems.&lt;br&gt;
&lt;br&gt;
The above solution is crude and doesn&apos;t work for all things you want to try.  I wrote a simple proxy server that spits out (to a log) everything the web browser sends to the server, and everything the server sends back.  It&apos;s pretty useful.  I don&apos;t know if such things are easily findable.  If you want mine I can probably dig it up and post it on my website.  I can build windows and unix versions.  I could probably make OSX ones but I don&apos;t have access to an OSX box.  I can post the source too (but you&apos;ll need Tcl to run it.  Tcl is usually available on unix platforms, maybe mac too)</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2005:site.17761-296487</guid>
		<pubDate>Wed, 20 Apr 2005 15:31:46 -0800</pubDate>
		<dc:creator>RustyBrooks</dc:creator>
	</item><item>
		<title>By: CaptApollo</title>
		<link>http://ask.metafilter.com/17761/Firefox-downloads-custom-404-under-IIS#296492</link>	
		<description>Thanks folks, I figured out that while IIS was serving normal php files fine, my 404.php was properly getting jammed up in Firefox as I had not specified text/html for ANY php file (wonder why IIS was serving them. It says it won&apos;t in the dialog box!).&lt;br&gt;
&lt;br&gt;
As for the nonexistant .php file, ideas on how to verify existance before PHP kicks in and gives the &quot;no input file specified error?&quot;&lt;br&gt;
&lt;br&gt;
Thanks for the good info above!</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2005:site.17761-296492</guid>
		<pubDate>Wed, 20 Apr 2005 15:36:41 -0800</pubDate>
		<dc:creator>CaptApollo</dc:creator>
	</item><item>
		<title>By: fishfucker</title>
		<link>http://ask.metafilter.com/17761/Firefox-downloads-custom-404-under-IIS#296499</link>	
		<description>&lt;i&gt;As for the nonexistant .php file, ideas on how to verify existance before PHP kicks in and gives the &quot;no input file specified error?&quot;&lt;/i&gt;&lt;br&gt;
&lt;br&gt;
You can set this through IIS: &lt;br&gt;
&lt;br&gt;
right-click on the site and select properties, choose the &quot;Home Directory&quot; tab, and under the &quot;Application Settings&quot; section click on &quot;Configuration&quot;, scroll down until you see the .php extension, edit that extension, and check the box next to &quot;Verify that file exists&quot;. &lt;br&gt;
&lt;br&gt;
Welcome to the joy of php on IIS. buy some spackling paste because before everything is over you&apos;ll probably punch some holes in the wall.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2005:site.17761-296499</guid>
		<pubDate>Wed, 20 Apr 2005 15:50:01 -0800</pubDate>
		<dc:creator>fishfucker</dc:creator>
	</item>
	</channel>
</rss>
