Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Http post,Get  RSS feed

 
Mortin kim
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HI.,
can any one tell me
What is http POST and http get..
where we are using these and how tey will work..what is the difference



Kim.
 
Jesper de Jong
Java Cowboy
Sheriff
Posts: 15860
80
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Read about the Hypertext Transfer Protocol (HTTP) on Wikipedia.
 
Siddharth Naik
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Get and Post are among many methods defined under http protocol.

Get method is used to get specific resource. Data sent through get method is visible in URL query string. All data reside in http header. This method is generally repeatable (idempotent) meaning sending it multiple times doesn't harm. For example clicking http://www.yahoo.com twice.

Post method is generally used to submit form data and get required response. Post method data are part of the message body (payload) and not header. Data sent are not visible in URL and the method is non-idempotent. Sending post requests multiple times can cause undesirable results. For example, submitting purchase button twice!

Usually, we override doGet and / or doPost methods defined in HttpServlet to provide required response to client's get and post requests respectively.
[ July 02, 2008: Message edited by: Siddharth Naik ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!