November 2024
Beginner to intermediate
456 pages
11h 5m
English
The HyperText Transfer Protocol, introduced in Chapter 13, is the mechanism through which data is requested and provided on the World Wide Web. This chapter describes the protocol in more detail and explains the way browser JavaScript has access to it.
If you type eloquentjavascript.net/18_http.html in your browser’s address bar, the browser first looks up the address of the server associated with eloquent javascript.net and tries to open a TCP connection to it on port 80, the default port for HTTP traffic. If the server exists and accepts the connection, the browser might send something like this:
GET /18_http.html HTTP/1.1 Host: eloquentjavascript.net User-Agent: Your browser's name
Then the server responds, through ...
Read now
Unlock full access