Skip to content

Try “polymorphism”, “TCP handshake” or “git rebase”.

    Networking 3: DNS, HTTP and HTTPS

    URLs, DNS, HTTP and TLS — and every step between typing a URL and seeing the page.

    • Module 5 of 8
    • Intermediate
    • 13 chapters
    • 1 h 12 min

    “What happens when you type a URL and press Enter?” is one of the most asked interview questions. This module answers it end to end: DNS, HTTP, caching, TLS and the boxes in between.

    What you will be able to do

    • Trace a DNS lookup from browser to answer
    • Read HTTP requests, methods, status codes and headers
    • Explain how HTTPS keeps traffic private and proves who the server is
    • Answer the “type a URL” question step by step

    Chapters

    1. URLsA full postal instruction: "By courier, to Sunrise Apartments, Gate 2, Flat 304, attention: the blue folder,4 min2. DNS: Turning Names Into IP AddressesDNS (Domain Name System) is the internet's distributed directory that turns domain names into IP addresses.8 min3. HTTP Messages: The Language of the Webheaders end at the first blank line;3 min4. HTTP Methods: Safe and IdempotentSafe — doesn't change anything on the server. Only reads.5 min5. Status Codes401 vs 403 is a favourite interview question: 401 — "who are you?", 403 = "I know who you are, and no."4 min6. Headers and BodiesHeaders are the label: Name: value lines of metadata. Names are case-insensitive.4 min7. Statelessness and CookiesHTTP is stateless: each request is independent. The server doesn't automatically remember anything from your4 min8. HTTP CachingCache-Control: max-age — 3600 — "you may reuse this response for 3,600 seconds without asking."2 min9. HTTP Versions: 1.1, 2 and 3A shop with one checkout lane:3 min10. Encryption Basics: Just Enough for HTTPSThis chapter teaches only the four ideas HTTPS needs. 08securityfundamentals.md goes much deeper (hashing,5 min11. HTTPS and TLSTLS (Transport Layer Security) is the protocol that encrypts a connection. (Its old name was SSL; people still5 min12. Proxies, Load Balancers and CDNsA proxy is a server that sits between a client and a server and passes traffic along.3 min13. What Happens When You Type a URL and Press EnterThis is the capstone of all five Foundations files so far. Practise telling it out loud in about 3 minutes. Each5 min

    Extras