views:

187

answers:

3

Is there any data regarding how browsers actually support rest http verbs (especially PUT, DELETE). This question is mostly motivated by the fact that many sources (such as this stackoverflow answer) inform that most browsers don't suport PUT and DELETE but don't say which.

Rails solves this using a patch on the client, and reversing the patch on the server, but I wonder, for instance, which browsers wouldn't need such hack.

A: 

See the PutDeleteSupport page of the Atom Wiki. You might be interested in browsing other Atom Wiki pages related to HTTP.

Andrey Vlasovskikh
Thanks, but this one actually only show the support on language clients. I am looking for the support on browser clients, such as chorme, firefox, ie, opera, opera mini, and so on.
Daniel Ribeiro
+2  A: 

Using this site, which tests my browser, I can assert the following for Firefox 3.6.2:

What Methods Are Available?

  1. GET: success
  2. Get: fail (Method sent: GET)
  3. POST: success
  4. PUT: success
  5. DELETE: success
  6. TRACE: fail (Method sent: )
  7. FOO: success
  8. Foo: fail (Method sent: FOO)

And chrome (5.0.369.0 (43550) both on linux):

What Methods Are Available?

  1. GET: success
  2. Get: fail (Method sent: GET)
  3. POST: success
  4. PUT: success
  5. DELETE: success
  6. TRACE: fail (Method sent: )
  7. FOO: success
  8. Foo: success

However someone might have aggregated similar results on more comprehensive browser/os pairs. Perhaps other user's would be intereseted in helping us compile such data by saying their results?

Daniel Ribeiro
+3  A: 

When in doubt, ask Anne:

http://annevankesteren.nl/2007/10/http-method-support

It's a couple of years old, but it gives a clean bill of health to PUT and DELETE, but it also tries different cases of more obscure verbs like TRACE and PROPFIND...

EDIT Another source that has come to more or less the same conclusion: That XMLHttpRequest supports PUT and DELETE: http://jshirley.vox.com/library/post/xmlhttprequest-and-rest.html

EDIT The question has been asked before of course, but the two year old answers are still valid.

mogsie
Yes, it is old. But then, i guess it is sadly, the best we have, without crowdsourcing people into http://www.mnot.net/javascript/xmlhttprequest/
Daniel Ribeiro