jQuery in Action, 3rd edition
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Put - idempotent 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 "Put - idempotent or not?" Watch "Put - idempotent or not?" New topic

Put - idempotent or not?

Imran Vohra
Ranch Hand

Joined: Dec 12, 2005
Posts: 77

In book, PN 114 it is mentioned that PUT is idempotent according to HTTP 1.1 spec.
But if you check HttpServlet API (J2EE 1.4), then it is clearly mentioned that doPut() method does not need to be safe or idempotent.

So, In exam what we have to write? idempotent or not?

Shivani Chandna
Ranch Hand

Joined: Sep 18, 2004
Posts: 380
Post is not idempotent.

/** Code speaks louder than words */
Christophe Verré

Joined: Nov 24, 2005
Posts: 14688

He is asking about PUT

[My Blog]
All roads lead to JavaRanch
Shivani Chandna
Ranch Hand

Joined: Sep 18, 2004
Posts: 380
Sorry abt reading the question incorrectly before.

I would mark PUT as not idempotent. Since the API docs say so.

I agree. Here's the link: http://aspose.com/file-tools
subject: Put - idempotent or not?
It's not a secret anymore!