What is HTTP? The Hypertext Transfer Protocol (HTTP) is designed to enable communications between clients and servers. HTTP works as a request-response protocol between a client and server.
Two HTTP Request Methods commonly used for request-response between a client and server: GET and POST
The GET Method
Following example which shows you how to use get method.
Following are GET Request Method Points.
- Request can be cached
- Requests can be bookmarked
- Requests remain in the browser history
- Requests have length restrictions
- Requests should be used only to retrieve data
- Requests should never be used when dealing with sensitive data
- Maximum path length of 2,048 characters
- Data visible to everyone in URL
- GET is less secure compared to POST because data sent is the URL.
Following are POST Request Method Points.
- Requests are never cached
- Requests do not remain in the browser history
- Requests cannot be bookmarked
- No restriction data length
- Requests have no restrictions on data length
- Data is not displayed in URL
- POST is a little safer than GET because the parameters are not stored in browser history.
We just started this developer diary for a beginner programmer to find a technical solution which we went through with our experience. If anyone to be a part of this please feel free share with us your problem with solutions. So we can share with more needed coder.