What will happen after typing the URL in the browser address bar and pressing Enter? The following article will introduce it to you, I hope it will be helpful to you.
Type the URL in the browser address bar and press Enter, you will go through the following process:
1. The DNS server requests to resolve the IP address corresponding to the domain name in the URL;
2. After parsing the IP address, establish a TCP connection with the server based on the IP address and the default port 80;
3. The browser issues an HTTP request to read the file (the file corresponding to the part after the domain name in the URL), and the request message is sent to the server as the third message of the TCP three-way handshake;
4. The server responds to the browser request and sends the corresponding html text to the browser;
5. Release the TCP connection;
6. The browser converts the html text and displays the content;
The above is the detailed content of What happens when you enter a url in the browser address bar?. For more information, please follow other related articles on the PHP Chinese website!