How the web works

How does the web work?

1. The user enters the address of the web site to be visited in the browser or clicks a hyperlink on an opened site. 2. DNS performs domain name resolution, finds the server's IP address, and sends a request to the web server pointed to by the address. 3. The web server converts the URL address into the full name of the file on the server where the page is located according to the request, and searches for the corresponding file. 4. If the URL points to a static file, the server transmits the file to the user's browser through the http protocol; if the HTML document embeds programs such as ASP, PHP, JSP, etc., it will be directly run by the server and returned to the user; if the italic style web server The running program includes access to the database. The server will send query instructions to the database server, and perform query operations on the data bold style database. The query results are returned from the database to the web server, and the web server sneaks the results into the page and sends it to the html The format is sent to the browser. 5. The browser interprets the html document and displays the result on the client screen.

Guess you like

Origin blog.csdn.net/qq_46009608/article/details/107528732