<?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: POST vs. PUT</title>
	<atom:link href="http://benramsey.com/archives/post-vs-put/feed/" rel="self" type="application/rss+xml" />
	<link>http://benramsey.com/archives/post-vs-put/</link>
	<description>PHP and Other Techno-babble</description>
	<lastBuildDate>Mon, 01 Feb 2010 11:59:25 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Ben Ramsey</title>
		<link>http://benramsey.com/archives/post-vs-put/comment-page-1/#comment-319860</link>
		<dc:creator>Ben Ramsey</dc:creator>
		<pubDate>Tue, 10 Nov 2009 17:11:19 +0000</pubDate>
		<guid isPermaLink="false">http://benramsey.com/?p=446#comment-319860</guid>
		<description>@Sudheer: That&#039;s actually a really good question. I&#039;ll do some digging around and see if I can come up with a little history lesson on that. :-)</description>
		<content:encoded><![CDATA[<p>@Sudheer: That&#8217;s actually a really good question. I&#8217;ll do some digging around and see if I can come up with a little history lesson on that. <img src='http://benramsey.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sudheer</title>
		<link>http://benramsey.com/archives/post-vs-put/comment-page-1/#comment-319859</link>
		<dc:creator>Sudheer</dc:creator>
		<pubDate>Tue, 10 Nov 2009 16:59:39 +0000</pubDate>
		<guid isPermaLink="false">http://benramsey.com/?p=446#comment-319859</guid>
		<description>I&#039;m really curious why many people ignored most HTTP verbs and stuck to only two - GET and POST, from the early days of HTTP?</description>
		<content:encoded><![CDATA[<p>I&#8217;m really curious why many people ignored most HTTP verbs and stuck to only two &#8211; GET and POST, from the early days of HTTP?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bernhard H.</title>
		<link>http://benramsey.com/archives/post-vs-put/comment-page-1/#comment-319841</link>
		<dc:creator>Bernhard H.</dc:creator>
		<pubDate>Tue, 10 Nov 2009 13:18:23 +0000</pubDate>
		<guid isPermaLink="false">http://benramsey.com/?p=446#comment-319841</guid>
		<description>&quot;The fundamental difference between the POST and PUT requests is reflected in the different meaning of the Request-URI. The URI in a POST request identifies the resource that will handle the enclosed entity.[...] In contrast, the URI in a PUT request identifies the entity enclosed with the request&quot;

A cool thing about POST: &quot;If a resource has been created on the origin server, the response SHOULD be 201 (Created) and contain an entity which describes the status of the request and refers to the new resource, and a Location header. &quot;

So apparently you can use both for updates and creates, its all about the URL. You just have to check the RFCs...

Maybe the problem with PUT and PHP is: PHP usually gets its input through HTML-forms that don&#039;t support PUT. And most webbroswers only support POST/GET :(</description>
		<content:encoded><![CDATA[<p>&#8220;The fundamental difference between the POST and PUT requests is reflected in the different meaning of the Request-URI. The URI in a POST request identifies the resource that will handle the enclosed entity.[...] In contrast, the URI in a PUT request identifies the entity enclosed with the request&#8221;</p>
<p>A cool thing about POST: &#8220;If a resource has been created on the origin server, the response SHOULD be 201 (Created) and contain an entity which describes the status of the request and refers to the new resource, and a Location header. &#8221;</p>
<p>So apparently you can use both for updates and creates, its all about the URL. You just have to check the RFCs&#8230;</p>
<p>Maybe the problem with PUT and PHP is: PHP usually gets its input through HTML-forms that don&#8217;t support PUT. And most webbroswers only support POST/GET <img src='http://benramsey.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sudheer</title>
		<link>http://benramsey.com/archives/post-vs-put/comment-page-1/#comment-319782</link>
		<dc:creator>Sudheer</dc:creator>
		<pubDate>Tue, 10 Nov 2009 05:12:52 +0000</pubDate>
		<guid isPermaLink="false">http://benramsey.com/?p=446#comment-319782</guid>
		<description>@Ben Ramsey

From what I understand, you&#039;d request the server to create a blog pots by making HTTP POST request to the URI, say for example, http://example.com/article. Or http://example.com/myname/article. In the latter example, the article would be subordinate to the resource &#039;myname&#039;. 

&quot;according to the spec, a blog post could be created with either a POST or a PUT request&quot;

I agree that both POST and PUT can be used to create the resource. It is more likely, we create resources without specifying the URI at which the resource has to be created. Isn&#039;t this an uncommon request to create a resource - PUT, http://example.com/article/4?</description>
		<content:encoded><![CDATA[<p>@Ben Ramsey</p>
<p>From what I understand, you&#8217;d request the server to create a blog pots by making HTTP POST request to the URI, say for example, <a href="http://example.com/article" rel="nofollow">http://example.com/article</a>. Or <a href="http://example.com/myname/article" rel="nofollow">http://example.com/myname/article</a>. In the latter example, the article would be subordinate to the resource &#8216;myname&#8217;. </p>
<p>&#8220;according to the spec, a blog post could be created with either a POST or a PUT request&#8221;</p>
<p>I agree that both POST and PUT can be used to create the resource. It is more likely, we create resources without specifying the URI at which the resource has to be created. Isn&#8217;t this an uncommon request to create a resource &#8211; PUT, <a href="http://example.com/article/4?" rel="nofollow">http://example.com/article/4?</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David</title>
		<link>http://benramsey.com/archives/post-vs-put/comment-page-1/#comment-319777</link>
		<dc:creator>David</dc:creator>
		<pubDate>Tue, 10 Nov 2009 03:48:41 +0000</pubDate>
		<guid isPermaLink="false">http://benramsey.com/?p=446#comment-319777</guid>
		<description>In a sense it&#039;s a bit like INSERT vs REPLACE
PUT is similar to REPLACE
POST is similar to INSERT</description>
		<content:encoded><![CDATA[<p>In a sense it&#8217;s a bit like INSERT vs REPLACE<br />
PUT is similar to REPLACE<br />
POST is similar to INSERT</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hodicska Gergely</title>
		<link>http://benramsey.com/archives/post-vs-put/comment-page-1/#comment-319740</link>
		<dc:creator>Hodicska Gergely</dc:creator>
		<pubDate>Mon, 09 Nov 2009 21:25:10 +0000</pubDate>
		<guid isPermaLink="false">http://benramsey.com/?p=446#comment-319740</guid>
		<description>And don&#039;t forget that PUT should be idempotent!</description>
		<content:encoded><![CDATA[<p>And don&#8217;t forget that PUT should be idempotent!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hodicska Gergely</title>
		<link>http://benramsey.com/archives/post-vs-put/comment-page-1/#comment-319733</link>
		<dc:creator>Hodicska Gergely</dc:creator>
		<pubDate>Mon, 09 Nov 2009 19:51:42 +0000</pubDate>
		<guid isPermaLink="false">http://benramsey.com/?p=446#comment-319733</guid>
		<description>I think a good rule of thumb is the following: you should use POST if you append to a resource and you don&#039;t know in advance the URL of the created entity, and you use PUT if you know in advance the URL of the created entity or if you edit something.</description>
		<content:encoded><![CDATA[<p>I think a good rule of thumb is the following: you should use POST if you append to a resource and you don&#8217;t know in advance the URL of the created entity, and you use PUT if you know in advance the URL of the created entity or if you edit something.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jpauli</title>
		<link>http://benramsey.com/archives/post-vs-put/comment-page-1/#comment-319726</link>
		<dc:creator>jpauli</dc:creator>
		<pubDate>Mon, 09 Nov 2009 18:44:08 +0000</pubDate>
		<guid isPermaLink="false">http://benramsey.com/?p=446#comment-319726</guid>
		<description>Can we tell for simplicity that PUT just takes the Request-Uri and creates it as-is on the server, while POST is more prone to use a CGI script that could eventually do the same as PUT ?</description>
		<content:encoded><![CDATA[<p>Can we tell for simplicity that PUT just takes the Request-Uri and creates it as-is on the server, while POST is more prone to use a CGI script that could eventually do the same as PUT ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ben Ramsey</title>
		<link>http://benramsey.com/archives/post-vs-put/comment-page-1/#comment-319721</link>
		<dc:creator>Ben Ramsey</dc:creator>
		<pubDate>Mon, 09 Nov 2009 18:03:55 +0000</pubDate>
		<guid isPermaLink="false">http://benramsey.com/?p=446#comment-319721</guid>
		<description>I&#039;m not sure I understand your &quot;blog post&quot; vs. &quot;blog put&quot; rationale since, according to the spec, a blog post could be created with either a POST or a PUT request. :-D</description>
		<content:encoded><![CDATA[<p>I&#8217;m not sure I understand your &#8220;blog post&#8221; vs. &#8220;blog put&#8221; rationale since, according to the spec, a blog post could be created with either a POST or a PUT request. <img src='http://benramsey.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':-D' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sudheer</title>
		<link>http://benramsey.com/archives/post-vs-put/comment-page-1/#comment-319715</link>
		<dc:creator>Sudheer</dc:creator>
		<pubDate>Mon, 09 Nov 2009 17:34:09 +0000</pubDate>
		<guid isPermaLink="false">http://benramsey.com/?p=446#comment-319715</guid>
		<description>Perfect. I don&#039;t see why people confuse PUT and POST. The HTTP specification, you quote in the blog post, is so clear about it.

It&#039;s a blog post, not a blog put, isn&#039;t it? :)</description>
		<content:encoded><![CDATA[<p>Perfect. I don&#8217;t see why people confuse PUT and POST. The HTTP specification, you quote in the blog post, is so clear about it.</p>
<p>It&#8217;s a blog post, not a blog put, isn&#8217;t it? <img src='http://benramsey.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
</channel>
</rss>
