• Post Reply Bookmark Topic Watch Topic
  • New Topic

Need Help in Understanding Limitation of HTTP Get  RSS feed

 
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: 2921
205
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
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!