• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

Need Help in Understanding Limitation of HTTP Get

 
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Creator of Enthuware JWS+ V6
Posts: 3412
320
Android Eclipse IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
He baked a muffin that stole my car! And this tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic