File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes idempotenet or NOT Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "idempotenet or NOT" Watch "idempotenet or NOT" New topic
Author

idempotenet or NOT

narender sunkam
Ranch Hand

Joined: May 01, 2004
Posts: 30
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


narender kumar
Nitish Bahadur
Ranch Hand

Joined: Aug 25, 2003
Posts: 118
As per HTTP 1.1 Specifications, GET, PUT, and HEAD are considered IDEMPOTENT.
Bharat Roy
Ranch Hand

Joined: Jul 01, 2004
Posts: 156
Nitish, could you please copy/paste that paragraph from the spec. As far as I remember, it also included DELETE.
Nitish Bahadur
Ranch Hand

Joined: Aug 25, 2003
Posts: 118
Sorry, all except POST and CONNECT are idempotent.

HTTP 1.1 Specification

Section 9.1.2
narender sunkam
Ranch Hand

Joined: May 01, 2004
Posts: 30
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

Joined: Nov 07, 2000
Posts: 357
Thanx for your help


Eat JAVA, Drink JAVA, Sleep Java
James Christian
Ranch Hand

Joined: Apr 04, 2005
Posts: 63
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: idempotenet or NOT
 
Similar Threads
IDEMPOTENT or not ?
Idempotent doubt...
idempotent
Put - idempotent or not?
Word Power Made Easy