http - chrisman/knowledge GitHub Wiki
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
- Informational responses (100–199)
- Successful responses (200–299)
- Redirects (300–399)
- Client errors (400–499)
- Server errors (500–599)
Testing APIs
Postman is a FIVE BILLION dollar company. Why does testing APIs seem to be so complicated. I really don't think it needs to be.
- https://justuse.org/curl/
- https://hoppscotch.io/
- https://yaak.app/
- https://www.usebruno.com/
- https://httpie.io/
- https://github.com/ducaale/xh
Other
- httpbin.org - A simple HTTP Request & Response Service.