• Post Reply Bookmark Topic Watch Topic
  • New Topic

Need Help in Understanding Limitation of HTTP Get

 
jatinkumar patel
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

The user cant bookmark a form submission if you use POST instead of GET. Depending on
your app, you may or may not want users to be able to bookmark the resulting request
from a form submission.
 
Frits Walraven
Creator of Enthuware JWS+ V6
Saloon Keeper
Posts: 2781
174
Android Chrome Eclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Jatinkumar,

HTTP GET is usually used for read-only requests for information where HTTP POST is used to update, write and delete information.
The form-parameters (those things you type in on a website) in a GET are placed behind the URL, like:

this makes it possible to bookmark your Google question for Javaranch

The parameters of a POST are never placed in the URL, but "hidden" in the content of the request.

Conclusion: A HTTP GET and a HTTP POST suit a different purpose (so in the servlet code you should never call a doGet() from a doPost() and vice-versa)

Regards,
Frits
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!