HTTP
HTTP is the language browsers and servers use to talk. Every page you open, every image that loads, every form you submit is one or more HTTP requests and the responses that come back.
Requests and responses
A client sends a request: a method, a path, some headers, and sometimes a body. The server sends a response: a status code, headers, and usually a body. That is the whole conversation.
GET /index.html HTTP/1.1
Host: example.com
Accept: text/html
HTTP/1.1 200 OK
Content-Type: text/html
Content-Length: 1256
Methods
GET asks for something, POST sends data, PUT and PATCH change something, DELETE removes it, and HEAD asks for just the headers. GET and HEAD should never change anything on the server.
Status codes
The first digit tells you the category: 2xx worked, 3xx is a redirect, 4xx is your fault (404 Not Found, 403 Forbidden), and 5xx is the server's fault. You will memorize the common ones fast: 200, 301, 404, 500.
Headers
Headers carry the details: Content-Type says what the body is, Cache-Control says how long to keep it, Authorization carries credentials. Both the request and the response have them.