• 个是来自《HTTP The Definitive Guide》的解,当然个只是面上的解,如果要理解底知识,应该看《unix网络编程>

    (a)
    The browser extracts the server’s hostname from the URL.

(b)
The browser converts the server’s hostname into the server’s IP address.

(c)
The browser extracts the port number (if any) from the URL.

(d)
The browser establishes a TCP connection with the web server.

(e)
The browser sends an HTTP request message to the server.

(f)
The server sends an HTTP response back to the browser.

(g)
The connection is closed, and the browser displays the document.

Picture 2-1

转载请注明:韦旭红的点点滴滴 » how a browser uses HTTP to display a simple HTML resource