Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Put - idempotent or not?

 
Imran Vohra
Ranch Hand
Posts: 77
Chrome Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In book, PN 114 it is mentioned that PUT is idempotent according to HTTP 1.1 spec.
But if you check HttpServlet API (J2EE 1.4), then it is clearly mentioned that doPut() method does not need to be safe or idempotent.

So, In exam what we have to write? idempotent or not?

Thanks
Imran
 
Shivani Chandna
Ranch Hand
Posts: 380
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Post is not idempotent.
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
He is asking about PUT
 
Shivani Chandna
Ranch Hand
Posts: 380
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry abt reading the question incorrectly before.

I would mark PUT as not idempotent. Since the API docs say so.

Regards.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic