Skip to content

HTTP

HTTP is a protocol used to send and receive content (e.g files, pages, HTML documents) over the web.

Requests

  • GET: retrieve data, no body, idempotent, safe
  • QUERY: same as get, but with body
  • POST: unsafe, change state
GETQUERYPOST
Safeyesyespotentially no
Idempotentyesyespotentially no
URI for query itselfyes (by definition)optional (Location response field)no
URI for query resultoptional (Content-Location response field)optional (Content-Location response field)optional (Content-Location response field)
Cacheableyesyesyes, but only for future GET or HEAD requests
Content (body)"no defined semantics"expected (semantics per target resource)expected (semantics per target resource)

HTTPS

HTTPS is the secure version of HTTP, encrypted with TLS or SSL.