4

Possible Duplicates:
REST development plugin for browser with all HTTP methods
Are the PUT, DELETE, HEAD, etc methods available in most web browsers?

How does one tell a web browser to send a PUT or DELETE request? I know I can tell it to send a POST or GET request by changing the form method property. It seems that this feature wouldn't be hard to implement.

I just read the famous article "How I explained REST to my wife" http://tomayko.com/writings/rest-to-my-wife. Needless to say, I had a suspicion before and I am now convinced that RESTful is the best way to design a web application.

Are browsers really not implementing PUT and DELETE? If so, why? What are the design considerations that go into this? Furthermore, are there plans in the future for these features to be integrated into browsers and other web standards?

Are major browsers already implementing the full set of HTTP features? And if they are, how do I ask them to use those features?

Community
  • 1
  • 1
Thomas Dignan
  • 7,052
  • 3
  • 40
  • 48

1 Answers1

3

It is not about browsers but about version of HTML used to define the form - both HTML 4.01 a XHTML 1.0 (I'm not sure about HTML 5) supports only GET and POST as method of HTML form. If you want to use PUT and DELETE you must either use JavaScript and XMLHttpRequest directly or some JavaScript library which simplifies this (like jQuery).

Ladislav Mrnka
  • 360,892
  • 59
  • 660
  • 670