<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Thijs Lensselink&#039;s Blog &#187; POST</title>
	<atom:link href="http://lenss.nl/tag/post/feed/" rel="self" type="application/rss+xml" />
	<link>http://lenss.nl</link>
	<description>Webdevelopment and stuff...</description>
	<lastBuildDate>Sun, 05 Feb 2012 11:39:43 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>301 Redirect losing POST data</title>
		<link>http://lenss.nl/2009/02/301-redirct-losing-post-data/</link>
		<comments>http://lenss.nl/2009/02/301-redirct-losing-post-data/#comments</comments>
		<pubDate>Fri, 20 Feb 2009 13:47:23 +0000</pubDate>
		<dc:creator>Thijs Lensselink</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Tech]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[mod_rewrite]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[POST]]></category>

		<guid isPermaLink="false">http://lenss.nl/?p=320</guid>
		<description><![CDATA[Earlier this week i implemented the forcing of trailing slashes for some websites. And this worked out great. But today one of the ladies here at the office noticed the contact form on one site wasn&#8217;t functioning properly anymore. So i did some debugging and quickly came to the conclusion the POST data array was [...]]]></description>
			<content:encoded><![CDATA[<p>Earlier this week i implemented the forcing of trailing slashes for some websites. And this worked out great.<br />
But today one of the ladies here at the office noticed the contact form on one site wasn&#8217;t functioning properly anymore. </p>
<p>So i did some debugging and quickly came to the conclusion the POST data array was empty after a submit of the form. That&#8217;s weird i thought. And didn&#8217;t really have a clue where to start looking. The code wasn&#8217;t touched for a couple of weeks. Bu then i remembered adding the forcing of the trailing slash.</p>
<p>So i browsed to the contact form and did a view source. And there was the problem. The form submitted to </p>
<blockquote><p>/contact/verstuurd</p></blockquote>
<p>A URL without a trailing slash. This causes apache to rewrite the url to </p>
<blockquote><p>/contact/verstuurd/</p></blockquote>
<p>And this also seems to turn the POST into a GET request.</p>
<p>So to fix it just changed to URL in the form to reflect the correct end point. But i have to say i didn&#8217;t expect this to happen. I understand why it happens. And it&#8217;s pretty logical. But i wonder if there&#8217;s a way around this behavior?</p>
]]></content:encoded>
			<wfw:commentRss>http://lenss.nl/2009/02/301-redirct-losing-post-data/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->
