HTTP
Computer Networks · 14 notes
- 2.1 HTTP Versionshistorical
HTTP versions differ in how they use connections and transmit requests. These notes compare the changes starting with the cost of closing connections after requests.
- 2.2 WebSockethistorical
WebSocket provides an ongoing communication protocol between clients and servers. These notes introduce server push through the limits of client-initiated HTTP requests.
- 2.3 HTTP Status Codeshistorical
HTTP status codes describe request outcomes and are grouped from 1xx to 5xx. These notes cover informational, successful, redirect, and error responses.
- 2.4 Fiddlerhistorical
Fiddler proxies requests between clients and servers to inspect HTTP traffic. These notes cover request inspection and performance-analysis views.
- 2.5 HTTP KeepAlivehistorical
HTTP KeepAlive reuses a TCP connection for multiple requests, reducing repeated connection setup. These notes explain the mechanism through HTTP version changes.
- 2.6 HTTPhistorical
HTTP requests contain a request line, headers, and a body, with a corresponding structure for responses. These notes start with message formats and basic HTTP usage.
- 2.7 HTTPShistorical
HTTPS adds SSL/TLS to HTTP to protect transmitted content with encryption. These notes explain its operation starting from the risks of plaintext HTTP.
- 2.8 HTTP Methodshistorical
HTTP Methods: HTTP/1.0 defined three request methods: GET, POST, and HEAD. HTTP/1.1 added six request methods: OPTIONS, PUT, PATCH, DELETE, TRACE, and CONNECT.
- 2.9 HTTP Cachehistorical
HTTP caching allows browsers to reuse responses and reduce repeated transfers. These notes examine cache decisions and the related request and response headers.
- 2.11 RESTfulhistorical
RESTful design is an architectural style based on HTTP. These notes organize interface conventions around resources and their state transfers.
- 2.12 URL Encodinghistorical
URL Encoding: A URL can use only English letters, Arabic numerals, and certain punctuation marks; other text and symbols cannot be used directly. Other characters need to be escaped using % character encoding.
- 2.13 Cookie and Sessionhistorical
The server creates a session and sends its identifier to the browser in a cookie. Later requests carry that identifier so the server can recognize the session.
- 2.14 What Happens After Entering a URL in the Browserhistorical
After a URL is entered, the browser parses it, resolves DNS, establishes a connection, and requests the resource. These notes follow that sequence step by step.
- 2.15 Browser Same-Origin Policy and Cross-Origin Accesshistorical
Two URLs share an origin when their scheme, host, and port match. These notes use address comparisons to explain the same-origin policy and cross-origin requests.