This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes What is the disadvantage of Post method? 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 » Java » Beginning Java
Bookmark "What is the disadvantage of Post method?" Watch "What is the disadvantage of Post method?" New topic
Author

What is the disadvantage of Post method?

Hemant Agarwal
Ranch Hand

Joined: Nov 21, 2005
Posts: 138
What is the disadvantage of Post method?
Manoj Kumkumath
Ranch Hand

Joined: Dec 01, 2005
Posts: 71
One disadvantage is that you can't view the URL
Albin Joseph
Greenhorn

Joined: Jan 22, 2005
Posts: 21
POST is slow compared to GET. And POST is not considered to be idempotent.


Java source code examples | Java coding community.
Stan James
(instanceof Sidekick)
Ranch Hand

Joined: Jan 29, 2003
Posts: 8791
The inventors of HTTP imagined very different purposes for GET and POST; they should not be considered interchangeable even though you can often make them so. Google for "REST architecture" or try this WikiPedia introduction.
[ January 04, 2006: Message edited by: Stan James ]

A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
Mukesh Mittal
Greenhorn

Joined: Dec 29, 2005
Posts: 16
One more disadvantage:

bookmark post page: If you add this to "add to favourite" in your browser. Browser will lost all the post page body content.
Adam Richards
Ranch Hand

Joined: Nov 03, 2005
Posts: 135
To turn things around a little: If you have sensitive data you don't want to make visible by appending it to the URL, you can put it in "hidden" form fields. They still go to the server, but as form fields instead of a URL string. This has the effect of making them invisible in a browser's address field. Of course, they're not encrypted or anything, and would still be accessible to a determined snooper. But hiding data via POST has the advantage of preventing dumb questions from users, like "what's all that stuff at the end of the URL?"
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: What is the disadvantage of Post method?
 
Similar Threads
adv and disadv of constructor and finalizer method
Disadvantage for the Inheritance
what are the disadvantage of Lazy and eager fetching??
Inner Class
Session Utility class