• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

What is the disadvantage of Post method?

 
Hemant Agarwal
Ranch Hand
Posts: 138
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is the disadvantage of Post method?
 
Manoj Kumkumath
Ranch Hand
Posts: 71
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
One disadvantage is that you can't view the URL
 
Albin Joseph
Greenhorn
Posts: 21
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
POST is slow compared to GET. And POST is not considered to be idempotent.
 
Stan James
(instanceof Sidekick)
Ranch Hand
Posts: 8791
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
Mukesh Mittal
Greenhorn
Posts: 16
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 135
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic