File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSP and the fly likes POST or GET Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "POST or GET" Watch "POST or GET" New topic


kevin schmidt
Ranch Hand

Joined: Aug 24, 2001
Posts: 85
How can you tell if your browser is using a "POST" or "GET"? What do I have to call? TIA
Roy Ben Ami
Ranch Hand

Joined: Jan 13, 2002
Posts: 732
most of the time your broweser is using the GET method.
when u see in the URL in the broweser code like this at the end: ?ubb=reply&f=50 etc u send the parametrs using the GET.
you can specify to send the paramaters using more secure mthods wih the POST method like in forms etc.
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63540

Programmatically, you can obtain the HTTP method via request.getMethod().

[Asking smart questions] [About Bear] [Books by Bear]
kevin schmidt
Ranch Hand

Joined: Aug 24, 2001
Posts: 85
sorry, bad wording on my part... I meant how can I tell if a program is using GET or POST from the coding side of things... but thanks bear
zb cong
Ranch Hand

Joined: Jan 14, 2002
Posts: 416
doGet(..........) or doPost(..........) method on servlet
Sals Hamid

Joined: Jan 04, 2002
Posts: 24
To send information on server side post method is used. Using Get we send limited informaiton to server side 240 characters approx. Get method is not secure because when we send information using Get our information is on address bar.e.g password etc.

No Path of Flowers lead to glory
I agree. Here's the link:
subject: POST or GET
jQuery in Action, 3rd edition