Skip to content
BENIBIX Learn

HTTP Method

Infrastructure🌐 NetworkingRequests and Responses

Also known as HTTP Verb, Request Method

The first word of a web request. It says what to do, like GET.

Think of it like

Think of it like the verb in a note. Get this, add this, change this or remove this.

Example

Lucy's app sends GET to load a profile and PATCH to change one field in it. Same address, two different methods.

Why it matters

The right method tells servers and caches what is safe to repeat. It also shows what changes data.

Definition

An HTTP method is the word at the start of a request that says what to do. GET asks to read something. POST sends something new. PUT replaces a thing, PATCH changes part of it, and DELETE removes it. The server reads the method first to know how to treat the rest.

Example code

http
GET /api/users/42 HTTP/1.1
Host: example.com
GET is the method: this request only reads user 42.

Common mistake

Using GET for something that changes data, like a delete link. A crawler following that link can wipe records.

Key takeaways

  1. 1
    The verb of a request. Read, add, change or remove.
  2. 2
    Read first. The server checks it before anything.
  3. 3
    Some are safe. GET changes nothing.

Learn it properly