• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

is PUT idempotent

 
Ram Gokul
Ranch Hand
Posts: 85
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The name suggests , the operations puts something in Server everytime ( and therefore changes the state ).The "book" talks about the POST .is PUT also non-idempotent ?

Thanks
 
Ram Gokul
Ranch Hand
Posts: 85
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moderator, please move this to SCWCD . i put it by mistake
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving and..
No, idempotent means that the state of the application or model wont' be changed by this action. As you've suggested, PUT actually places something on the server (if the server supports it). The WEBDAV protocol uses it for moving files to the server.
 
Marc Peabody
pie sneak
Sheriff
Posts: 4727
Mac Ruby VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ben is right as usual. PUT is about as anti-idempotent as HTTP methods get!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic