• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Http post,Get

 
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Java Cowboy
Posts: 16084
88
Android Scala IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Read about the Hypertext Transfer Protocol (HTTP) on Wikipedia.
 
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
reply
    Bookmark Topic Watch Topic
  • New Topic