Skip to content
BENIBIX Learn

HTTP Request

Infrastructure🌐 NetworkingRequests and Responses

Also known as Request, Web Request

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

Think of it like

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

Example

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

Why it matters

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

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 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.

Common mistake

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

Key takeaways

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

Learn it properly