What is a post request?

The purpose of a Post request is to make a change on the Server.

Given the post request below:


On the request line we have POST instead of GET followed by the resource location on the server in this case “/post” then followed by the HTTP/1.1 protocol version.

Next line we have the Host location URI, we hit enter to put a blank space then followed by the Content-Length: 32 bytes. We get the number of bytes from the data we wish to POST.

This data is “firstname=Chris&language=English. each letter is 1 byte. There are 32 letters therefore 32 bytes.

Enter the wrong number of bytes and we get a 400 status code.

Data is included in the request body or payload, after a blank line that follows the headers in a HTTP POST request.


We're not around right now. But you can send us an email and we'll get back to you, asap.


©2021 RussellCoder

Log in with your credentials

Forgot your details?