QamoosTech
Web & APIsHTTP and requestsBeginner

HTTP Methods

PronunciationAY-TCH TEE-PEE METH-uhds

Definition

HTTP Methods are standard verbs like GET, POST, PUT, and DELETE that tell a server what action to perform on a resource. They form the foundation of how clients and servers communicate in web applications and APIs.

Where you hear it

- In API documentation - During backend development - When debugging network requests in the browser

Examples

  • Use a GET request to retrieve user profile data from the server.
  • Submit a POST request with the form data to create a new account.
  • Send a DELETE request to remove an item from the shopping cart.

Common mistake

Using a GET request to send sensitive data or modify server state, which is insecure and violates HTTP standards because GET requests should be safe and idempotent.

Don't confuse with

HTTP Methods are often confused with HTTP Status Codes; methods define the action the client wants to perform, while status codes indicate the server's response to that specific action.

Say it at work

  • In a meeting or chatWe should change this endpoint to a PATCH request since we are only updating a specific field instead of replacing the whole resource.
  • In an email or ticketPlease ensure that the API documentation specifies the correct HTTP methods for each endpoint to avoid confusion during integration.