Difference between Get and Post Method?

GET vs POST - Difference and Comparison

In the previous article I explained about .Net Framework, Web Services (SOAP, RestFul), How to read trace information, How to Send Email Via Gmail or Gmail SMTP Server and many more.

In this article I will explain about Http GET and Http POST methods. HTTP POST requests supply additional data from the client (browser) to the server in the message body. In contrast, GET requests include all required data in the URL. Forms in HTML can use either method by specifying method="POST" or method="GET" (default) in the <form> element. The method specified determines how form data is submitted to the server. 

When the method is GET, all form data is encoded into the URL, appended to the action URL as query string parameters. With POST, form data appears within the message body of the HTTP request.

difference between, GET method, GET and POST, difference between METHOD="GET" and METHOD="POST",GET/POST/PUT methods

Http Get()

  • Data is appended to the URL.
  • Data is publicly available.
  • GET/POST/PUT methods both send and receive response/data.
  • Browser dependent up to 4K.
  • GET/POST/PUT methods all transmit at the same speed.
  • This is the default method for many browsers. (for non-form based data only)

Http Post()

  • POST data can not appended to the URL or in body.
  • Only for https sessions otherwise is public.
  • GET/POST/PUT methods both send and receive response/data.
  • There is no limit on the amount of data. That is, any amount of data can be sent.
  • GET/POST/PUT methods all transmit at the same speed.
  • It is possible to transmit POST data on a GET method.
Please leave your comments, suggestions and queries about this post in the comment sections in order for me to improve my writing skills and to showcase more useful posts. Thanks for reading! :)

No comments:

All Rights Reserved by Etechpulse © 2015 - 2016
Powered By Blogger

Contact Form


Email *

Message *

Powered by Blogger.