This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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 Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSP
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: 60782
    
  65

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


[Asking smart questions] [Bear's FrontMan] [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
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
 
 
subject: POST or GET
 
Similar Threads
what happens after you pass your parameters along with your submits
Form submit problem
service method not overridden
href and submit differences
Components size