• 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

idempotenet or NOT

 
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 118
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
As per HTTP 1.1 Specifications, GET, PUT, and HEAD are considered IDEMPOTENT.
 
Ranch Hand
Posts: 156
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 357
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanx for your help
 
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
reply
    Bookmark Topic Watch Topic
  • New Topic