<?xml version="1.0" encoding="UTF-8"?>
<feed xml:lang="en-US" xmlns="http://www.w3.org/2005/Atom">
  <title>andthennothing.net: Now I kind of GET it</title>
  <subtitle type="html">&amp;ldquo;first there was a three-legged monkey...&amp;rdquo;</subtitle>
  <id>tag:andthennothing.net,2005:Typo</id>
  <generator uri="http://typo.leetsoft.com" version="4.0">Typo</generator>
  <link href="http://andthennothing.net/xml/atom10/article/73/feed.xml" rel="self" type="application/xml+atom"/>
  <link href="http://andthennothing.net/archives/2005/05/24/now-i-kind-of-get-it" rel="alternate" type="text/html"/>
  <updated>2005-12-18T03:19:03+00:00</updated>
  <entry>
    <author>
      <name>Jonas Bengtsson</name>
      <email>jonas.b@home.se</email>
    </author>
    <id>urn:uuid:b10b04f5-33e6-48b6-978a-e436fa21d19c</id>
    <published>2005-05-24T23:37:00+00:00</published>
    <updated>2005-12-18T03:19:03+00:00</updated>
    <title>Now I kind of GET it</title>
    <link href="http://andthennothing.net/archives/2005/05/24/now-i-kind-of-get-it" rel="alternate" type="text/html"/>
    <category term="rails" scheme="http://andthennothing.net/tags/73"/>
    <category term="http" scheme="http://andthennothing.net/tags/73"/>
    <category term="standards" scheme="http://andthennothing.net/tags/73"/>
    <category term="javascript" scheme="http://andthennothing.net/tags/73"/>
    <category term="webdevelopment" scheme="http://andthennothing.net/tags/73"/>
    <content type="html">&lt;p&gt;Just an update to &lt;a href="http://andthennothing.net/archives/2005/05/13/javascript-and-links"&gt;an entry I posted some days ago&lt;/a&gt;, where I ranted a bit and touched upon &lt;a href="http://www.rubyonrails.org/"&gt;Ruby on Rails&lt;/a&gt; getting support for &lt;a href="http://www.loudthinking.com/arc/000455.html"&gt;Javascript generated &lt;span class="caps"&gt;POS&lt;/span&gt;Ts on links&lt;/a&gt;. I didn&amp;#8217;t see the problem back then, but today I understand a tad more learning that &lt;a href="http://flickr.com/"&gt;Flickr&lt;/a&gt; had a &lt;a href="http://flickr.com/groups_topic.gne?id=36856"&gt;serious defect&lt;/a&gt; with GETs.&lt;/p&gt;


	&lt;p&gt;&lt;a href="http://www.glish.com/"&gt;Eric Costello&lt;/a&gt; provided this enlighting quote on the &lt;a href="http://www.flickr.com/services/api/"&gt;Flickr &lt;span class="caps"&gt;API&lt;/span&gt;&lt;/a&gt; mailing list from the &lt;a href="http://www.ietf.org/rfc/rfc2616.txt"&gt;HTTP/1.1 &lt;span class="caps"&gt;RFC&lt;/span&gt;&lt;/a&gt;:&lt;/p&gt;


	&lt;blockquote&gt;
		&lt;p&gt;In particular, the convention has been established that the &lt;span class="caps"&gt;GET&lt;/span&gt; and &lt;span class="caps"&gt;HEAD&lt;/span&gt; methods &lt;span class="caps"&gt;SHOULD NOT&lt;/span&gt; have the significance of taking an action other than retrieval. These methods ought to be considered &amp;#8220;safe&amp;#8221;. This allows user agents to represent other methods, such as &lt;span class="caps"&gt;POST&lt;/span&gt;, PUT and &lt;span class="caps"&gt;DELETE&lt;/span&gt;, in a special way, so that the user is made aware of the fact that a possibly unsafe action is being requested.&lt;/p&gt;
	&lt;/blockquote&gt;


	&lt;p&gt;That makes sense, but it wasn&amp;#8217;t something that I was actively aware of (I&amp;#8217;m not a web developer, so I&amp;#8217;m not too embarrassed). If this advice was followed, the hoopla about &lt;a href="http://webaccelerator.google.com/"&gt;Google Web Accelerator&lt;/a&gt; &amp;#8220;prefetched&amp;#8221; naughty pages such as &amp;#8220;delete this post&amp;#8221; in &lt;a href="http://wordpress.org/"&gt;WordPress&lt;/a&gt; would never have happened.&lt;/p&gt;


	&lt;p&gt;But I&amp;#8217;m still not sure why you would like links that works as &lt;span class="caps"&gt;POS&lt;/span&gt;Ts. Are &lt;span class="caps"&gt;FOR&lt;/span&gt;Ms too cumbersome? Perhaps it&amp;#8217;s a brilliant idea but I don&amp;#8217;t understand enough of the problem yet &amp;mdash; still learning.&lt;/p&gt;


	&lt;p&gt;&lt;em&gt;Note to self:&lt;/em&gt; use &lt;span class="caps"&gt;POST &lt;/span&gt;(or &lt;span class="caps"&gt;PUT&lt;/span&gt;/DELETE) when the state is changed on the server!&lt;/p&gt;</content>
  </entry>
</feed>
