Skip to content
BENIBIX Learn

GET Request

Infrastructure🌐 NetworkingRequests and Responses

Also known as GET, HTTP GET, GET Method

A web request that only reads. It asks for data and changes nothing.

Think of it like

Think of it like asking a librarian to show you a book. You look, but nothing changes.

Example

Jack opens a shop page, and his browser sends a GET for /products?page=2. The server sends back 20 products.

Why it matters

GET never changes anything. So its answers can be saved, bookmarked and tried again.

Definition

A GET request asks a server to send something back without changing anything. Loading a web page, a picture or a list of products is a GET. Any extra details go in the address, because a GET has no body. GET requests are safe to repeat, so browsers and caches may send or store them freely. It is the most common method on the web.

Example code

http
GET /products?page=2 HTTP/1.1
Host: example.com
A GET with the page number in the address.

Common mistake

Putting a password or token in a GET address. Addresses end up in logs and browser history.

Key takeaways

  1. 1
    Read only. Nothing changes.
  2. 2
    Details in the address. No request body.
  3. 3
    Safe to repeat. And to cache.

Compare

Learn it properly