• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

is PUT and DELETE methods Idempotent ?

 
Raju Sri
Ranch Hand
Posts: 108
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ,
I just want to confirm which are idempotent in exam point of view.From HF I can see only HEAD,GET,PUT are idempotent . I checked HTTP document in the below URL.
http://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html
In the above document HEAD,PUT,GET,DELETE are specified as idempotent.

I saw some threads where some people discussed over PUT method that it is not idempotent.

So what are the exact idempotent methods in exam point of view ??

Thanks
Raju
 
Nileesha Bojjawar
Ranch Hand
Posts: 85
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Srinivas,
According to the Servlet Specification 2.4 Page 230 DELETE need not be idempotent
"This method does not need to be either safe or idempotent. Operations requested through DELETE can have side effects for which users can be held accountable. When using this method, it may be useful to save a copy of the affected URL in temporary storage."
Same with Post(example, updating stored data or buying items online.) and Put.

Hope this helps.
Good Luck.
 
Raju Sri
Ranch Hand
Posts: 108
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Nileesha ,
Thanks for info.So now we can consider only GET and HEAD methods are idempotent and rest of the methods are not idempotent.Correct me if I am wrong.

Cheers
Raju
 
Sharon
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What if the questions ask for 3 answers? We should be choose.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic