Skip to content
Christopher P. Brown edited this page Jan 25, 2022 · 3 revisions

HTTP

hypertext transfer protocol

HTTP methods

  • GET: fetch a resource
  • PUT: create or replace a resource
  • POST: create a new resource only (fails if the resource exists)
  • PATCH: partial update of a resource
  • DELETE: destroy a resource
  • OPTIONS: show what methods are available for a resource
  • HEAD: just fetch the headers for a resource

Q: What's the difference between PUT and POST

A: PUT is idempotent. POST is not.

Stuff that is not HTTP

CLI Clients

Status Codes

  1. Informational responses (100–199)
  2. Successful responses (200–299)
  3. Redirects (300–399)
  4. Client errors (400–499)
  5. Server errors (500–599)

Testing APIs

Other

  • httpbin.org - A simple HTTP Request & Response Service.
Clone this wiki locally