<?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: Issues with bad implementations of &#8220;Accept&#8221; HTTP header</title>
	<atom:link href="http://lab.pheromone.ca/2009/11/16/http-accept-header-implementatio/feed/" rel="self" type="application/rss+xml" />
	<link>http://lab.pheromone.ca/2009/11/16/http-accept-header-implementatio/</link>
	<description>Inspiration, Experimentation, Innovation</description>
	<lastBuildDate>Mon, 21 Nov 2011 20:30:32 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: karl</title>
		<link>http://lab.pheromone.ca/2009/11/16/http-accept-header-implementatio/comment-page-1/#comment-233</link>
		<dc:creator>karl</dc:creator>
		<pubDate>Thu, 26 Nov 2009 20:52:10 +0000</pubDate>
		<guid isPermaLink="false">http://lab.pheromone.ca/?p=182#comment-233</guid>
		<description>It would not work, because you do not know if it is an img tag which requests the resource or an iframe for example. :)</description>
		<content:encoded><![CDATA[<p>It would not work, because you do not know if it is an img tag which requests the resource or an iframe for example. :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Olivier Théreaux</title>
		<link>http://lab.pheromone.ca/2009/11/16/http-accept-header-implementatio/comment-page-1/#comment-231</link>
		<dc:creator>Olivier Théreaux</dc:creator>
		<pubDate>Thu, 26 Nov 2009 20:41:36 +0000</pubDate>
		<guid isPermaLink="false">http://lab.pheromone.ca/?p=182#comment-231</guid>
		<description>Your problem is not that your solution would not work, but that the (rails) implementation is a little poor. The little experience I&#039;ve had with content-negotiation tells me you do NOT want to rely on regular expressions (at least not simplistic ones) to parse Accept headers.


If you take the time to properly parse the accept headers, then you can implement an algorithm that could send a 406 if the Accept headers neither include image/ nor */*.</description>
		<content:encoded><![CDATA[<p>Your problem is not that your solution would not work, but that the (rails) implementation is a little poor. The little experience I&#8217;ve had with content-negotiation tells me you do NOT want to rely on regular expressions (at least not simplistic ones) to parse Accept headers.</p>
<p>If you take the time to properly parse the accept headers, then you can implement an algorithm that could send a 406 if the Accept headers neither include image/ nor */*.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

