HTTP in Plain Words
HTTP in Plain Words: HTTP in Plain Words: Requests and Responses, Status Codes and Headers.
Updated
- HTTP in Plain Words: Requests and Responses (Apprentice): An app that asks an API for something sends an HTTP request with a method, a URL, headers and sometimes a body, and gets back a response with a status code, headers and usually a body, and Python's urllib.parse splits a URL into its path and its query values.
- Status Codes and Headers (Apprentice): A response's three-digit status code tells the app how its request went before it reads a word of the body, its first digit names the family (2xx it worked, 3xx look elsewhere, 4xx the request has a problem, 5xx the server broke), and headers such as Content-Type tell the app how to read the body.