theme: juejin

  • – [] – [] 12
Every day, HTTP assigns MIME types to every object to be transferred over the Web.

What THE MIME type does: The browser processes the data according to the MIME type.

  • The URI contains the following two
  1. URL
  2. URN

How are packets connected over transport protocols from one place to another

In web terms

  1. The HTTP application layer
  2. The TCP transport layer
  3. The IP network layer
  4. Network – specific data link layer at intersections
  5. Physical network hardware physical layer

What happens when the user enters the URL

The steps are as follows:

  1. (a) The browser resolves the hostname of the server from the URL;
  2. (b) The browser translates the server host name into the server IP address;
  3. (c) The browser interprets the port number (if any) from the URL;
  4. (d) The browser establishes a TCP connection with the Web server;
  5. (e) The browser sends an HTTP request to the server;
  6. (f) The server sends back an HTTP response packet to the browser;
  7. (g) Close the connection and the browser displays the document.