<?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"
	>
<channel>
	<title>Comments on: Odd Apache pitfall: ErrorDocument and POST</title>
	<atom:link href="http://www.brainonfire.net/2007/08/12/apache-pitfall-errordocument-post/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.brainonfire.net/2007/08/12/apache-pitfall-errordocument-post/</link>
	<description>Tim McCormack, distilled.</description>
	<pubDate>Wed, 08 Oct 2008 02:56:22 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6</generator>
		<item>
		<title>By: Tim McCormack</title>
		<link>http://www.brainonfire.net/2007/08/12/apache-pitfall-errordocument-post/#comment-15293</link>
		<dc:creator>Tim McCormack</dc:creator>
		<pubDate>Mon, 13 Aug 2007 00:23:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.brainonfire.net/2007/08/12/php-pitfall-errordocument-post/#comment-15293</guid>
		<description>We've all done that kind of thing. &lt;em&gt;Mostly&lt;/em&gt; before we realize, "Hey, I can't be the only person that's wanted this feature before, maybe it's already been implemented the *right* way."

And then you discover there's a name for what you wanted to do, and several competing software packages, and a whole website on the relevant best practices.</description>
		<content:encoded><![CDATA[<p>We've all done that kind of thing. <em>Mostly</em> before we realize, "Hey, I can't be the only person that's wanted this feature before, maybe it's already been implemented the *right* way."</p>
<p>And then you discover there's a name for what you wanted to do, and several competing software packages, and a whole website on the relevant best practices.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Xaprb</title>
		<link>http://www.brainonfire.net/2007/08/12/apache-pitfall-errordocument-post/#comment-15291</link>
		<dc:creator>Xaprb</dc:creator>
		<pubDate>Sun, 12 Aug 2007 23:49:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.brainonfire.net/2007/08/12/php-pitfall-errordocument-post/#comment-15291</guid>
		<description>Before I knew about mod_rewrite, I used an 404 trick.  What a hack.  Every request for a .html file would fail because there was no such file.  Then Apache would run the 404 page, which was a PHP file that looked at the environment to see see what file had originally been requested.  I discovered the same thing: no POST data.  I think it's because the 404 document is actually invoked from a new request Apache creates, after discarding the original one.

My next hack was using an AddHandler trick:

AddHandler headered .html
Action headered /includes/site.php

Worked okay, but I still just needed to learn about mod_rewrite!</description>
		<content:encoded><![CDATA[<p>Before I knew about mod_rewrite, I used an 404 trick.  What a hack.  Every request for a .html file would fail because there was no such file.  Then Apache would run the 404 page, which was a PHP file that looked at the environment to see see what file had originally been requested.  I discovered the same thing: no POST data.  I think it's because the 404 document is actually invoked from a new request Apache creates, after discarding the original one.</p>
<p>My next hack was using an AddHandler trick:</p>
<p>AddHandler headered .html<br />
Action headered /includes/site.php</p>
<p>Worked okay, but I still just needed to learn about mod_rewrite!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
