🌐Request Body
Also known as Body, Payload, HTTP Body
The data sent inside a web request, after the headers. POST and PUT use one.
Think of it like
Think of it like a card in an envelope. The note is inside, not on the front.
Example
Lucy uploads a photo of 2 MB. The photo travels in the request body, and the headers say its type is image/jpeg.
Why it matters
Anything too big or too private for the address goes in the body.
Definition
Example code
json
{
"name": "Lucy",
"email": "lucy@example.com"
}Common mistake
Key takeaways
- 1After the headers. Past a blank line.
- 2The data itself. A record, a form, a file.
- 3Typed by a header. Content-Type says the format.