aspose file tools
The moose likes JSP and the fly likes POST or GET Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » JSP
Reply Bookmark "POST or GET" Watch "POST or GET" New topic
Author

POST or GET

kevin schmidt
Ranch Hand

Joined: Aug 24, 2001
Posts: 85
Hi,
How can you tell if your browser is using a "POST" or "GET"? What do I have to call? TIA
Kevin
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
Marshal

Joined: Jan 10, 2002
Posts: 56541
    
  14

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


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About 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: 403
doGet(..........) or doPost(..........) method on servlet
Sals Hamid
Greenhorn

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: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: POST or GET
 
Similar Threads
Components size
href and submit differences
Form submit problem
service method not overridden
what happens after you pass your parameters along with your submits