INHow the Internet Works · Lesson 5 of 7
HTTP & HTTPS
Above all the plumbing sits a plain-text conversation: 'GET /page' — '200 OK, here you go'. HTTP is simple enough to speak by hand, and TLS wraps the whole exchange in encryption.
HTTP is stateless: each request stands alone, and the server remembers nothing between them. Cookies bolt memory on — the server says Set-Cookie once, the browser attaches it to every later request, and that's how logins persist. Headers carry everything else: content types, cache rules, compression, auth tokens.
✦ Tip
Certificates are free (Let's Encrypt) and automated now — there is no excuse for plain HTTP. For developers: 'mixed content' errors mean an HTTPS page loading an http:// asset, and CORS errors aren't network failures — they're the browser enforcing cross-origin rules the server must opt out of via headers.
Certificates are free (Let's Encrypt) and automated now — there is no excuse for plain HTTP. For developers: 'mixed content' errors mean an HTTPS page loading an http:// asset, and CORS errors aren't network failures — they're the browser enforcing cross-origin rules the server must opt out of via headers.