When a user goes to the browser and types a URL, what exactly is happening?
- The browser tries to look up the IP address of the domain name in the URL by getting it from the DNS Server. Think of DNS as a directory mapping the domain name to the IP Address.
- Once the browser has the IP Address, it sends a HTTP request to that IP Address on port 80. If the URL is secure (HTTPS), then the request is sent to port 443. A simple HTTP request that is sent in plain text format looks like this: GET /hello.html HTTP/1.1.
- The request also contains headers that are shared to pass additional information about the request, such as authentication information, cookies, or the type of the browser making the request.
- The request ...