Difference between HttpGet and HttpPost Method

In my previous posts I have explained various topics like Use of ViewBag in Asp.net MVCJquery, asp.net, visual studio,C#.Net,Console application

Now in this post, I will explain Difference between HttpGet and HttpPost Method with appropriate example.

Difference between HttpGet and HttpPost Method
Difference between HttpGet and HttpPost Method
  1. HTTPGet method is default whereas you will need to specify HTTPPost attribute if you are posting data using HTTPPost method.
  2. HTTPGet method makes a query string of the name and value pair whereas HTTPPost method passes the name and value pairs in the body part of the HTTP request.
  3. HTTPGet request has smaller length and mainly it is limited to 255 characters long whereas HTTPPost request has no maximum limit.
  4. HTTPGet is comparatively faster than HTTPPost
  5. HTTPGet can contain only string data whereas HTTPPost can carry both string and binary data.
  6. HTTPGet method creates readable url so it can be cached and bookmarked whereas such option is not available in HTTPPost method.

Summary

You can also read about ASP.NET, C#.Net, JQUERY, AJAX, JavaScript
I would like to have feedback on my blog.
Your valuable feedback, question, or comments about this article are always welcome.
If you liked this post, don’t forget to share this.