Home  >  Article  >  What happens when you enter a url in the browser address bar?

What happens when you enter a url in the browser address bar?

青灯夜游
青灯夜游Original
2019-05-09 15:57:5528328browse

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.

What happens when you enter a url in the browser address bar?

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn