Skip to main content

HTTP

When you fire up your browser, you mainly use Hypertext Transfer Protocol (HTTP) and HTTPS (S stands for Secure) protocols. This protocols relies on TCP (Transmission Control Protocol) at Transport Layer (Layer 4) and usually uses port 80 for HTTP and port 443 for HTTPS.

Course​

Self-Host​

  • Caddy - An easy-to-use web server with automatic HTTPS.
  • Nginx - A high-performance web server and reverse proxy server.
  • Apache HTTP Server - A widely-used open-source web server.

Tools​

  • HTTPie (GitHub) - A user-friendly command-line HTTP client.

Status Codes​

1xx: hold on
2xx: here you go
3xx: go away
4xx: you fucked up
5xx: I fucked up

Methods used in HTTP​

  • GET: Requests data from a specified resource. It should not change the server state.
  • POST: Submits data to be processed to a specified resource. It can change the server state.
  • PUT: Uploads a representation of the specified resource. It can create or replace a resource.
  • DELETE: Deletes the specified resource.