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

HTTP PUT method Idempotent or not?

 
Sreenath Madasu
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi there!
I am preparing for SCWCD1.4 on Thursday with HFS&J and MZ's study guide. I found one contradictory thing. HFS&J says HTTP methods GET,HEAD and PUT are idempotent, while MZ's study guide says PUT is not . Can anybody clarify?

Thanks
Sreenath
 
Naresh Arige
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Put gives no guarantee of Idempotency why bcoz, if you try to upload the same file on the server repetitively from the same URL request, the file is replaced over and over on the server at the same location.
 
Laszlo Kiraly
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Sreenath Madasu:

HFS&J says HTTP methods GET,HEAD and PUT are idempotent, while MZ's study guide says PUT is not . Can anybody clarify?


hi Sreenath,

the http specification says they are idempotent, though side effects can be produced on the server side. you might also want to check http://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html

regards,
Laszlo
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic