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 belowParameter | GET | POST |
---|---|---|
1)Function | GET request is used to carry UI or Form data from client to the Server OR get contents or resources from server | POST request is also used to carry UI or Form data from client to the Server |
2)Data Visibility | In 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 Access | In 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 packet | In 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 secure | In 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 request | In 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 Size | In 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 request | In POST request data is carried in the body of HTTP packet. So we can carry unlimited data from client to server side |
6)Bookmark | GET request can be bookmark | POST request can not be bookmark |
7)Default request Type | GET request is the default request type | POST request is not the default request type |
8)When to use GET and POST | 1)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

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

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