Chapter 2 · How Web Traffic Works
3. Follow an HTTP Exchange
Read the method, path, status, and body in one HTTP exchange.
Video transcript
You open a page. What goes over the wire? HTTP is a request and response protocol. The browser asks for a resource, and the server answers. The browser sends a get request for the schedule. The path identifies the resource. The server sends a 200 OK status, response headers and the schedule content. The browser uses the response body to render the schedule you see on screen. Read the method and path to understand what the browser asked for. Read the status and headers to understand what came back. Find the request method, then read the path. Pair it with the response from that exchange. Check the status and what the response body contains. Now you can follow one web exchange from request to response. Try it in the knowledge check.
Course outlineLesson 3 of 8
Lesson notes
A browser sends an HTTP request. The method describes what it asks the server to do, the path identifies the resource, and headers add context such as which formats the browser accepts.
The server responds with a status and response headers. A successful response for the practice schedule can include the page in its body. One page may cause additional requests for images or styles.
Pair the request and response from the same exchange. A success status tells you how the server handled that request. Access policy is a separate question.
Try it
Read this saved record: GET /schedule → 200 OK, body: schedule page. Name the method, path, status, and response body.
1. In GET /schedule, which part identifies the resource path?
2. Which part of the response contains the schedule page itself?
3. What does 200 OK tell you about this saved exchange?