Forums Register Login

Http post,Get

+Pie Number of slices to send: Send
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.
+Pie Number of slices to send: Send
Read about the Hypertext Transfer Protocol (HTTP) on Wikipedia.
+Pie Number of slices to send: Send
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 ]
What a stench! Central nervous system shutting down. Save yourself tiny ad!
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 694 times.
Similar Threads
http method
GET request to submit data (instead of POST) ?
Rewriting URL in jstl
What is an Idempotent Requests
HTTP GET and POST
More...

All times above are in ranch (not your local) time.
The current ranch time is
Apr 16, 2024 04:22:00.