• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

POST or GET

 
kevin schmidt
Ranch Hand
Posts: 85
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 732
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 64718
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Programmatically, you can obtain the HTTP method via request.getMethod().
hth,
bear
 
kevin schmidt
Ranch Hand
Posts: 85
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 416
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
doGet(..........) or doPost(..........) method on servlet
 
Sals Hamid
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic