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

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

青灯夜游
Release: 2020-09-15 17:54:21
Original
28444 people have browsed it

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!

Related labels:
url
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template