Sunday, December 24, 2017

Difference between HTTP get and post request

1- Conventionally, get request is used for static contents and post request is used for dynamic contents.

2- Technically, In case of get request, requested data send as part of packet header whereas in case of post request, request data is send as a part of packet body.
The size of HTTP packet header is fixed hence only limited amount of data can be send as a part of get request.

Size of HTTP packet body can be unlimited hence, unlimited amount of data can be send as a part of post request.

post request use in case of :
1- audio/ video uploading
2- Large amount of data sending

3- In case of get request, request data is appended to the URL as parameter. URL is visible in the address bar hence request data is displayed in the address bar.
In case of post request, request data is not appended to the URL, hence it is not visible in the address bar.

4- In case of get request, request data transmitted over the network as submitted by the user whereas in case of post request, request data is encrypted using the standard encryption algorithm (RS32) and then transmitted over the network.

No comments:

Post a Comment

Java Functional Interface

Java Lambda expression Lambda expression came to enable to use functional programming feature in java. It provides the facility t...