Categories
Web

Body of POST Requests with HTTP/1.1

I recommend people to use the following structure of post requests minimally. Well, otherwise there is no way to do that thing.

POST /yis HTTP/1.1
Host: yismypeaple.com
Content-Type: application/x-www-form-urlencoded
Content-Length: 30

name="neym"&surname="soerneym"

This example will post name=”neym” and surname=”soerneym” to yismypeaple.com/yis As you can see Content-Length is just total length of body which is starting with name=

You can get many information from there https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods/POST