🌐GET Request
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
Example code
http
GET /products?page=2 HTTP/1.1
Host: example.comCommon mistake
Key takeaways
- 1Read only. Nothing changes.
- 2Details in the address. No request body.
- 3Safe to repeat. And to cache.