wood burning stoves 2.0*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Idempotent Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "Idempotent" Watch "Idempotent" New topic


Tom Tolman
Ranch Hand

Joined: Sep 02, 2004
Posts: 83
On the bottom of page 114 of HFSJ it says "The Http 1.1 spec declared GET, HEAD, and PUT as idempotents, even though you CAN write a non idempotent doGet() method yourself (but shouldn't). POST is considered idempotent by the HTTP 1.1 spec."

Then immediately it says "POST is not idempotent"

Is the first paragraph last line a typo, or is it that they are making a distinction between intention of server response vs the actuality of correct server response?
Chandra Atla
Ranch Hand

Joined: Jul 21, 2004
Posts: 91
Hi Tom,

The first paragraph's last line a typo. It's documented in the HFSJ errata.

Here is the link to HFSJ Errata.


Nicky Eng
Ranch Hand

Joined: Mar 26, 2005
Posts: 378
POST is non-idempotent

From NickyEng
Diploma in Computer Studies
SCJP 1.4
Formula 1 app by Maxis (Playbook)
I agree. Here's the link: http://aspose.com/file-tools
subject: Idempotent
Similar Threads
What is an Idempotent Requests
Why is PUT considered as idempotent..?
Only POST is not considered idempotent ?
HF Servlets & JSP - POST Idempotent? Pg 114
what is differance between the get/post method?