This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design 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