Article:
 |
|
The REST of the Web
|
| Subject: |
|
this is not REST |
| Date: |
|
2005-04-28 07:57:55 |
| From: |
|
nferrier
|
|
|
|
using POST parameters is *explicitly* NOT RESTfull.
It should not be done, especially if you set out to write a RESTfull HTTP service.
If you need to do PUT or DELETE from a webpage you can always use XmlHttpRequest to fire your requests for you.
If you're worried about supporting some fringe operating systems then you can check out sarissa: http://sarissa.sourceforge.net/doc/
|
Showing messages 1 through 5 of 5.
-
this is not REST
2005-04-29 08:16:41
kitdavies
[View]
-
this is not REST
2005-04-28 16:44:58
jrbriggs
[View]
-
this is not REST
2005-04-29 05:56:13
nferrier
[View]
-
this is not REST
2005-04-29 20:32:32
jrbriggs
[View]
-
this is not REST
2005-04-30 14:27:51
nferrier
[View]
I took the view that it was "semi-RESTful". That is, I supported both direct calls to doPut, doDelete, etc for those clients that could provide them, as well as the "method" parameters as described here for standard browser interaction.
The problem I had was with PUT, which requires the server to save the resource data supplied under the URI supplied. This is slightly different than just providing a POST parameter and I regarded the workaround as a bit of a necessary hack.
I don't have a problem with describing the method used here as RESTful. It is certainly not "pure" REST, I agree, but I think you can be pragmatic about these things as well. I believe that REST concepts per se reduce much of the complexity involved in web apps and applications based on them will undoubtably benefit. This is what is being described here.
Kit