Difference between HttpGet and HttpPost Method
In my previous posts I have explained various topics like Use of ViewBag in Asp.net MVC, Jquery, asp.net, visual studio,C#.Net,Console application
Now in this post, I will explain Difference between HttpGet and HttpPost Method with appropriate example.
- HTTPGet method is default whereas you will need to specify HTTPPost attribute if you are posting data using HTTPPost method.
- 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.
- HTTPGet request has smaller length and mainly it is limited to 255 characters long whereas HTTPPost request has no maximum limit.
- HTTPGet is comparatively faster than HTTPPost
- HTTPGet can contain only string data whereas HTTPPost can carry both string and binary data.
- 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.