A form POST — the two headers that a body makes mandatory
A form POST — the two headers that a body makes mandatory
Answer
POST /register HTTP/1.1 Host: www.example.org Content-Type: application/x-www-form-urlencoded Content-Length: 31
`Content-Type` says how to interpret the bytes, `Content-Length` says how many there are. A blank line follows these four, then exactly 31 bytes of body. Miscount and the server hangs or truncates.
Harold 4e ch6 §The Protocol; §HTTP Methods; §The Request Body