This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Java Interview Guide and have Anthony DePalma on-line!
See this thread for details.
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 Java Interview Guide this week in the Jobs Discussion 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:
subject: Idempotent
jQuery in Action, 3rd edition