How the Web Works

What really happens when you open a website: IP addresses, DNS, URLs, HTTP, cookies, HTTPS, caching, APIs and hosting, in short lessons with Python practice.

  • 0 students
  • 84 lessons
  • 5 h 51 min

Created by Ayim Nelson

What you will learn

  • Explain the internet, the web, clients and servers in your own words
  • Describe IP addresses, ports, packets and how DNS turns names into addresses
  • Take a URL apart and read raw HTTP requests and responses
  • Choose the right HTTP method and understand any status code by its family
  • Explain cookies, sessions and what HTTPS does and doesn't protect
  • Use the Network tab and caching headers to see why a page is fast or slow
  • Call and read a JSON API, and know the basics of hosting and web security

About this course

Every time you open a website, send a mobile money payment or check the news, dozens of small steps happen in under a second. This course walks through them in plain language: how the internet carries data, how DNS finds a server, what an HTTP request and response really say, how cookies, HTTPS and caching work, and how APIs and hosting fit in. Each section ends with a small Python exercise that acts out the idea.

For: beginners on the Backend, Frontend or Full-Stack roadmaps, and anyone curious about what's behind the browser. A little Python helps for the exercises, but no web experience is needed.

By the end: you'll be able to follow a page load from the address bar to the screen, read raw HTTP and the DevTools Network tab, and you'll have written small Python programs that split URLs, read HTTP messages, cache DNS answers and parse JSON.

Course content

10 sections · 84 lessons

The internet and the web5 lessons
Addresses, ports and packets8 lessons
  • IP addressesReading · 3 min
  • IPv4 and IPv6Reading · 3 min
  • Private addresses and your routerReading · 3 min
  • PortsReading · 3 min
  • localhost: your own computerReading · 3 min
  • PacketsReading · 3 min
  • TCP and UDPReading · 3 min
  • Packets out of orderExercise · 12 min
DNS: names for addresses6 lessons
  • Domain namesReading · 3 min
  • Reading a domain nameReading · 3 min
  • DNS recordsReading · 3 min
  • How a DNS lookup worksReading · 4 min
  • DNS caching and TTLReading · 3 min
  • A pretend DNS resolverExercise · 12 min
URLs7 lessons
  • The parts of a URLReading · 3 min
  • Scheme, host and portReading · 3 min
  • PathsReading · 3 min
  • Query stringsReading · 3 min
  • FragmentsReading · 3 min
  • URL encodingReading · 3 min
  • Taking URLs apartExercise · 12 min
HTTP messages11 lessons
  • What HTTP isReading · 3 min
  • The request messageReading · 3 min
  • The response messageReading · 3 min
  • HeadersReading · 3 min
  • Request headers you'll often seeReading · 3 min
  • Response headers you'll often seeReading · 3 min
  • Message bodiesReading · 3 min
  • Content typesReading · 3 min
  • HTTP/1.1Reading · 3 min
  • HTTP/2 and HTTP/3Reading · 3 min
  • Build and read raw HTTPExercise · 14 min
HTTP methods and status codes11 lessons
  • GET: asking for somethingReading · 3 min
  • POST: sending new dataReading · 3 min
  • PUT and PATCH: updatingReading · 3 min
  • DELETE: removingReading · 3 min
  • Safe and idempotent methodsReading · 3 min
  • Status code familiesReading · 3 min
  • 2xx: successReading · 3 min
  • 3xx: redirectsReading · 3 min
  • 4xx: client errorsReading · 3 min
  • 5xx: server errorsReading · 3 min
  • Reacting to status codesExercise · 10 min
Cookies, sessions and HTTPS10 lessons
  • HTTP has no memoryReading · 3 min
  • CookiesReading · 3 min
  • Cookie settings: Secure, HttpOnly and SameSiteReading · 3 min
  • Sessions and logging inReading · 4 min
  • Why plain HTTP is riskyReading · 3 min
  • HTTPS and TLSReading · 3 min
  • CertificatesReading · 3 min
  • The padlockReading · 3 min
  • What HTTPS hides and what it doesn'tReading · 3 min
  • Remembering a visitorExercise · 12 min
Loading pages and caching9 lessons
  • From HTML to a full pageReading · 3 min
  • Building and drawing the pageReading · 3 min
  • The Network tab in DevToolsReading · 4 min
  • Why caching mattersReading · 3 min
  • Cache-ControlReading · 3 min
  • Fresh or stale?Reading · 3 min
  • Checking back with ETagReading · 3 min
  • CDNsReading · 3 min
  • Is it still fresh?Exercise · 12 min
APIs and JSON8 lessons
  • What an API isReading · 3 min
  • JSONReading · 3 min
  • Reading JSON in PythonReading · 3 min
  • Writing JSON in PythonReading · 3 min
  • REST basicsReading · 4 min
  • Calling an APIReading · 3 min
  • API keys and rate limitsReading · 3 min
  • Reading an API responseExercise · 12 min
Hosting, deployment and staying safe9 lessons
  • Web servers and hostingReading · 3 min
  • Static and dynamic sitesReading · 3 min
  • Putting a site onlineReading · 4 min
  • Strong passwordsReading · 3 min
  • PhishingReading · 3 min
  • XSS: cross-site scriptingReading · 3 min
  • CSRF: cross-site request forgeryReading · 3 min
  • Showing comments safelyExercise · 10 min
  • Final quizQuiz · 10 min

Reviews

No reviews yet.

Comments

Log in to join the conversation.

Loading comments...