Difference GET and POST HTTP

What you will learn here about GET vs POST
  • Difference between GET and POST HTTP
  • How to identify the request is get or post

Difference between GET and POST HTTP

Key important differences between GET and POST HTTP request is given below
ParameterGETPOST
1)FunctionGET request is used to carry UI or Form data from client to the Server OR get contents or resources from serverPOST request is also used to carry UI or Form data from client to the Server
2)Data VisibilityIn GET request data is carried in the header of HTTP packet so data is visible in URL.In POST request data is carried in the body of HTTP packet so data is not visible in the URL.
3)Data AccessIn GET request data is carried in the header of HTTP packet so on the server side you can access data from the header part of HTTP request packetIn POST request data is carried in the body of HTTP packet so on the server side you can access data from the body of HTTP request packet
4)Data secureIn GET request data is carried in the header of HTTP packet so data is visible in the URL. Hence Data is not secured in GET requestIn POST request data is carried in the body of HTTP packet so data is not visible in the URL. Hence Data is secured in POST request
5)Data SizeIn GET request data is carried in the header of HTTP packet. Hence data size is limited. We can carry 1024 characters from client to server in GET requestIn POST request data is carried in the body of HTTP packet. So we can carry unlimited data from client to server side
6)BookmarkGET request can be bookmarkPOST request can not be bookmark
7)Default request TypeGET request is the default request typePOST request is not the default request type
8)When to use GET and POST1)If security is not not concerned and you want to send limited data i.e less 1024 characters then you can use get request
2)When you want to give Bookmark functionality
1)If you want to secure data then you should go for POST request
2)When you want to carry unlimted data to the server

How to identify the request is get or post

1)Any hyperlink you see is the GET type request. Example : below bytesofgigabytes is the hyperlink and the type of request is the GET

Difference GET and POST HTTP

2)Whenever we enter form details and see entered data in URL on submit form then request type is GET

Difference GET and POST

3)Any link we access using direct URL in the browser is also GET type

How to identify the request is get or post

You may also like...

Leave a Reply