File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

idempotenet or NOT

 
narender sunkam
Ranch Hand
Posts: 30
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can anybody tell me from exam point of view that which of the following methods are IDEMPOTENT or not ?

GET : IDEMPOTENT or not
POST : IDEMPOTENT or not
PUT : IDEMPOTENT or not
HEAD : IDEMPOTENT or not
DELETE : IDEMPOTENT or not
TRACE : IDEMPOTENT or not
OPTIONS : IDEMPOTENT or not
CONNECT : IDEMPOTENT or not
 
Nitish Bahadur
Ranch Hand
Posts: 118
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As per HTTP 1.1 Specifications, GET, PUT, and HEAD are considered IDEMPOTENT.
 
Bharat Roy
Ranch Hand
Posts: 156
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Nitish, could you please copy/paste that paragraph from the spec. As far as I remember, it also included DELETE.
 
Nitish Bahadur
Ranch Hand
Posts: 118
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry, all except POST and CONNECT are idempotent.

HTTP 1.1 Specification

Section 9.1.2
 
narender sunkam
Ranch Hand
Posts: 30
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanx Ankur Bhatt
Now I am able to know which one are Idempotent.


The Best gift to give others is HOPE
 
Sanjay pts
Ranch Hand
Posts: 357
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanx for your help
 
James Christian
Ranch Hand
Posts: 63
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The exam only concentrates on GET and POST seeing as in real life they are the only two methods you are likely to use. However, you may be asked questions such as which method is useful for requesting only the header and so you only need to know the nasic function of the other methods.

As regards idempotency you need to know that GET can cause no side effect (i.e is idempotent) while POST can cause side-effects (not idempotent)

Remember idempotency is good. Only with POST do you need to ensure that orders are not sent twice etc.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic