# HTTP Request

> A note a browser sends to a server. It asks for a page or data.

**Field:** Infrastructure  
**Category:** Networking  
**Also known as:** Request, Web Request

## Think of it like

Think of it like an order slip. It says what you want and adds notes for the cook.

## Definition

An HTTP request is the message a browser or app sends to a server to ask for something. Its first line names the method, like GET or POST, and the path, like /menu. Below that come headers, which are extra notes such as which site and which language. Some requests also carry a body, like the fields of a form. The server reads it and sends back a response.

## Example

Emma opens the menu page. The browser sends a request that starts with GET /menu.

## Example code

```http
GET /menu HTTP/1.1
Host: example.com
Accept-Language: en
```

Get the menu page from this site, and send it in English.

## Why it matters

Every click, form and API call is a request. Reading one shows exactly what was asked.

## Common mistake

Putting secrets in the path, like ?password=123. Paths end up in logs and browser history.

## Three principles

- **Method and path.** What to do, and where.
- **Headers.** Extra notes for the server.
- **Optional body.** Data like form fields.

## Related terms

- [HyperText Transfer Protocol (HTTP)](https://learn.benibix.com/term/infrastructure/http)
- [HTTP Response](https://learn.benibix.com/term/infrastructure/http-response)
- [HTML Form](https://learn.benibix.com/term/development/html-form)
- [Uniform Resource Locator (URL)](https://learn.benibix.com/term/general/url)

## Taught in

- [HTTP Requests and Responses](https://learn.benibix.com/learn/infrastructure-networking/http-requests-and-responses): Computer Networking, 9/13

---

Source: https://learn.benibix.com/term/infrastructure/http-request
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.
