• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Is Put idempotent?

 
Ranch Hand
Posts: 154
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hanumant says that put is idempotent because no matter how many times you Put a file on server the same file is going to be uploaded...is this corrent? since in some toher threads i found it too confusing
 
Ranch Hand
Posts: 385
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Idompotent means doing the same thing should not cause bad side effect atleast incase of HTTP.

So if you put a file more than once in a server it will not cause any bad side effect and hence it is consider to be idompotent.

 
Ranch Hand
Posts: 10198
3
Mac PPC Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Anything that causes a change is Idempotent!
 
Ranch Hand
Posts: 55
Eclipse IDE
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
@ jothi : Any thing that does not cause a change is idempotent..for example : GET is idempotent because it is only used to get data not changed it...all the methods except POST are idempotent...

@ted :
Hey buddy.have a look at this thread, this might help you:

https://coderanch.com/t/176113/Web-Component-Certification-SCWCD/certification/GET-idempotent-POST-not-anybody
 
Ranch Hand
Posts: 55
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Everyone STOP
We have to separate things:
- SPEC: spec says that the only non-idempotent method is POST. Thats all. We have to learn it and thats the only right answer on the exam.
- LIVE: as we know live is different that spec sometimes ;) you can make:
* POST that is not changing anything (so we can call it then idempotent)
* GET thats changing data (what is the problem to update DB in doGet method ???)
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic