• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Idemptonet Method

 
Sanjay pts
Ranch Hand
Posts: 357
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
all
Im reading Mikalai Zaikin Notes .according to him PUT is not idempotent.
But accoring to my knowledge all methos are Idemptonet EXCEPT POST.
THis URL say the same
http://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html

So plase update me in this case.
 
Narendra Dhande
Ranch Hand
Posts: 951
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
From your given RFC link.

n particular, the convention has been established that the GET and HEAD methods SHOULD NOT have the significance of taking an action other than retrieval. These methods ought to be considered "safe". This allows user agents to represent other methods, such as POST, PUT and DELETE, in a special way, so that the user is made aware of the fact that a possibly unsafe action is being requested.


PUT method put the resource and does not change the existing resource.

Methods can also have the property of "idempotence" in that (aside from error or expiration issues) the side-effects of N > 0 identical requests is the same as for a single request. The methods GET, HEAD, PUT and DELETE share this property. Also, the methods OPTIONS and TRACE SHOULD NOT have side effects, and so are inherently idempotent.

However, it is possible that a sequence of several requests is non- idempotent, even if all of the methods executed in that sequence are idempotent. (A sequence is idempotent if a single execution of the entire sequence always yields a result that is not changed by a reexecution of all, or part, of that sequence.) For example, a sequence is non-idempotent if its result depends on a value that is later modified in the same sequence.

A sequence that never has side effects is idempotent, by definition (provided that no concurrent operations are being executed on the same set of resources).


Thanks
[ June 02, 2005: Message edited by: Narendra Dhande ]
 
Bing Shiao
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Sanjay pts:
Hi
all
Im reading Mikalai Zaikin Notes .according to him PUT is not idempotent.
But accoring to my knowledge all methos are Idemptonet EXCEPT POST.
THis URL say the same
http://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html

So plase update me in this case.
 
Harish Yerneni
Ranch Hand
Posts: 94
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
All methods except POST and CONNECT are idempotent. Correct?
 
Tiago Fernandez
Ranch Hand
Posts: 167
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, only POST is not idempotent. You can check it in Head First Servlets & JSP book. I guess CONNECT doesn't count.
 
Sanjay pts
Ranch Hand
Posts: 357
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
As im taking one mock exam tells me that
PUT,DELETE is non-indemtont method.
So please clarify in this case.
sanjay
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic