<?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: Location vs. Content-Location</title>
	<atom:link href="http://www.subbu.org/blog/2008/10/location-vs-content-location/feed" rel="self" type="application/rss+xml" />
	<link>http://www.subbu.org/blog/2008/10/location-vs-content-location</link>
	<description>HTTP, REST and some Cycling</description>
	<lastBuildDate>Fri, 12 Mar 2010 03:24:18 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: BigSmoke &#187; Atom and REST</title>
		<link>http://www.subbu.org/blog/2008/10/location-vs-content-location/comment-page-1#comment-44198</link>
		<dc:creator>BigSmoke &#187; Atom and REST</dc:creator>
		<pubDate>Tue, 03 Nov 2009 17:23:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.subbu.org/?p=434#comment-44198</guid>
		<description>[...] looking at the trackbacks of that post, I came across a very nice post by Subbu detailing the differences between and uses of the Location and Content-Location HTTP headers.    &#171; Back to top &#187; Skip to navigation   By Rowan Rodrik &#124; On October 09, 2009 at 23:10 [...]</description>
		<content:encoded><![CDATA[<p>[...] looking at the trackbacks of that post, I came across a very nice post by Subbu detailing the differences between and uses of the Location and Content-Location HTTP headers.    &laquo; Back to top &raquo; Skip to navigation   By Rowan Rodrik | On October 09, 2009 at 23:10 [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kris Zyp</title>
		<link>http://www.subbu.org/blog/2008/10/location-vs-content-location/comment-page-1#comment-8751</link>
		<dc:creator>Kris Zyp</dc:creator>
		<pubDate>Wed, 29 Oct 2008 16:28:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.subbu.org/?p=434#comment-8751</guid>
		<description>Yes, I was aware that I could do this with PUT requests, but I wanted to defer to the server&#039;s URI assignment (and therefore use POST). The Slug header sounds like a good idea, I don&#039;t think a guarantee is necessary, I just wanted an unobtrusive way for the client to communicate such links when necessary. Thank you.</description>
		<content:encoded><![CDATA[<p>Yes, I was aware that I could do this with PUT requests, but I wanted to defer to the server&#8217;s URI assignment (and therefore use POST). The Slug header sounds like a good idea, I don&#8217;t think a guarantee is necessary, I just wanted an unobtrusive way for the client to communicate such links when necessary. Thank you.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Subbu Allamaraju</title>
		<link>http://www.subbu.org/blog/2008/10/location-vs-content-location/comment-page-1#comment-8748</link>
		<dc:creator>Subbu Allamaraju</dc:creator>
		<pubDate>Wed, 29 Oct 2008 15:49:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.subbu.org/?p=434#comment-8748</guid>
		<description>Have you considered using PUT instead to create both A and B. A server can let PUT to create new resources when it can can &quot;name&quot; resources. Here is a possible flow.


PUT /mypath/a

&lt;a&gt;
  &lt;link href=&quot;http://.../mypath/b&quot; rel=&quot;blah&quot;/&gt;
  ...
&lt;/a&gt;

PUT /mypath/b

&lt;b&gt;
  &lt;link href=&quot;http://.../mypath/a&quot; rel=&quot;blah&quot;/&gt;
  ...
&lt;/b&gt;


However, a problem with this model is that it creation of B fails, A will have a stale link to A, and so, the client will have to do another PUT to update A to remove that stale link.

Alternatively you can you use AtomPub-style &quot;Slug&quot; header, but there is no guarantee (for the client, i.e.,) that the server will use that header while naming the new resource.</description>
		<content:encoded><![CDATA[<p>Have you considered using PUT instead to create both A and B. A server can let PUT to create new resources when it can can &quot;name&quot; resources. Here is a possible flow.</p>
<p>PUT /mypath/a</p>
<p>&lt;a&gt;<br />
  &lt;link href=&quot;http://&#8230;/mypath/b&quot; rel=&quot;blah&quot;/&gt;<br />
  &#8230;<br />
&lt;/a&gt;</p>
<p>PUT /mypath/b</p>
<p>&lt;b&gt;<br />
  &lt;link href=&quot;http://&#8230;/mypath/a&quot; rel=&quot;blah&quot;/&gt;<br />
  &#8230;<br />
&lt;/b&gt;</p>
<p>However, a problem with this model is that it creation of B fails, A will have a stale link to A, and so, the client will have to do another PUT to update A to remove that stale link.</p>
<p>Alternatively you can you use AtomPub-style &quot;Slug&quot; header, but there is no guarantee (for the client, i.e.,) that the server will use that header while naming the new resource.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kris Zyp</title>
		<link>http://www.subbu.org/blog/2008/10/location-vs-content-location/comment-page-1#comment-8708</link>
		<dc:creator>Kris Zyp</dc:creator>
		<pubDate>Wed, 29 Oct 2008 03:30:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.subbu.org/?p=434#comment-8708</guid>
		<description>In the past I have attempted (incorrectly I assume) to use Content-Location in a POST request so the client can indicate where it would like the resource to be temporarily be addressable until it receives a server-assigned URI (in the response). The use case:
Suppose I want to create resource A and resource B, both through POST requests (so the server can assign the URI), and I want to resource A to be have a link to resource B, and have resource B have a link to resource A (and I am assuming that the server can update the internal links if an alternate URI is used prior to receiving a server assigned URI). Is there a way to do this properly with HTTP?</description>
		<content:encoded><![CDATA[<p>In the past I have attempted (incorrectly I assume) to use Content-Location in a POST request so the client can indicate where it would like the resource to be temporarily be addressable until it receives a server-assigned URI (in the response). The use case:<br />
Suppose I want to create resource A and resource B, both through POST requests (so the server can assign the URI), and I want to resource A to be have a link to resource B, and have resource B have a link to resource A (and I am assuming that the server can update the internal links if an alternate URI is used prior to receiving a server assigned URI). Is there a way to do this properly with HTTP?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bill Burke</title>
		<link>http://www.subbu.org/blog/2008/10/location-vs-content-location/comment-page-1#comment-5287</link>
		<dc:creator>Bill Burke</dc:creator>
		<pubDate>Tue, 07 Oct 2008 04:50:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.subbu.org/?p=434#comment-5287</guid>
		<description>My example was using Content-Location as a header within a multipart response of a GET and, I think, satisfies the paragraph you quoted.  In fact the multipart RFC states:

&quot;The only header fields that have defined meaning for body parts are those the names of which begin with &quot;Content-&quot;.  All other header
fields may be ignored in body parts.  Although they should generally
be retained if at all possible, they may be discarded by gateways if
necessary.&quot;

Its highly probable nobody has ever used Content-Location within a body part.  Still, I&#039;d much rather create and define my own headers then have to parse a heavyweight envelope format like Atom, which was my original point.

BTW, HTTP 1.1 does not forbid using Content-Location within a PUT or POST, but it does state that the behavior is undefined.</description>
		<content:encoded><![CDATA[<p>My example was using Content-Location as a header within a multipart response of a GET and, I think, satisfies the paragraph you quoted.  In fact the multipart RFC states:</p>
<p>&#8220;The only header fields that have defined meaning for body parts are those the names of which begin with &#8220;Content-&#8221;.  All other header<br />
fields may be ignored in body parts.  Although they should generally<br />
be retained if at all possible, they may be discarded by gateways if<br />
necessary.&#8221;</p>
<p>Its highly probable nobody has ever used Content-Location within a body part.  Still, I&#8217;d much rather create and define my own headers then have to parse a heavyweight envelope format like Atom, which was my original point.</p>
<p>BTW, HTTP 1.1 does not forbid using Content-Location within a PUT or POST, but it does state that the behavior is undefined.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
