# Request Body

> The data sent inside a web request, after the headers. POST and PUT use one.

**Field:** Infrastructure  
**Category:** Networking  
**Also known as:** Body, Payload, HTTP Body

## Think of it like

Think of it like a card in an envelope. The note is inside, not on the front.

## Definition

The request body is the data sent after the headers in a web request. It carries what you are sending, like a new user, a form or a file. POST, PUT and PATCH requests usually have one; GET and DELETE usually do not. A header called Content-Type says what format the body is in, such as JSON. A blank line separates the headers from the body.

## Example

Lucy uploads a photo of 2 MB. The photo travels in the request body, and the headers say its type is image/jpeg.

## Example code

```json
{
  "name": "Lucy",
  "email": "lucy@example.com"
}
```

A JSON body for creating a user.

## Why it matters

Anything too big or too private for the address goes in the body.

## Common mistake

Sending JSON without a Content-Type header that says so. Many servers then read the body as empty.

## Three principles

- **After the headers.** Past a blank line.
- **The data itself.** A record, a form, a file.
- **Typed by a header.** Content-Type says the format.

## Related terms

- [HTTP Request](https://learn.benibix.com/term/infrastructure/http-request)
- [HTTP Header](https://learn.benibix.com/term/infrastructure/http-header)
- [POST Request](https://learn.benibix.com/term/infrastructure/post-request)
- [JavaScript Object Notation (JSON)](https://learn.benibix.com/term/development/json)
- [Response Body](https://learn.benibix.com/term/development/response-body)

## Told apart from

- [Query Parameter vs Request Body](https://learn.benibix.com/compare/query-parameter-vs-request-body): A query parameter goes in the address, after the question mark. Anyone can see it there. A request body goes inside the request, after the headers. Short filters go in the address; passwords, forms and files go in the body.

## Taught in

- [HTTP Methods: GET vs POST](https://learn.benibix.com/learn/infrastructure-networking/http-methods-get-vs-post): Computer Networking, 10/13

---

Source: https://learn.benibix.com/term/infrastructure/request-body
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-19
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
