In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-08 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article will explain in detail what the HTTP request process is in php. The editor thinks it is very practical, so I share it with you as a reference. I hope you can get something after reading this article.
Detail a complete HTTP request process
The core of this problem is domain name resolution and server (nginx) resolution, which are basically described in detail.
Step 1. Parse URL
The browser parses the current URL data to determine whether the URL is a legitimate link. If it is a legitimate link, proceed normally to the next step. If it is not a legal link, it will perform search functions, such as Baidu, 360th, Google search, etc.
Step 2: resolve the domain name
The server exists as an ip. While the domain name needs to be resolved to ip, there are three small steps to resolve IP:
1) parse the domain name data from the browser's own cache
2) resolve the domain name from the HOST file of the local computer
3) resolve the domain name through the DNS server
Step 3. Get the information
In this step, we get the URL information, mainly IP and port information.
Step 4: package and three-way handshake
The browser packages the request information and passes the data to the server through the three-way handshake of TCP.
Step 5. The server parses, processes and returns data.
The server gets the transmitted data through various levels and ways, analyzes and processes the data, and finally returns the response class MIME type data. The normal status code is 200, and the abnormal error codes are 404, 500, 501, etc.
Step 6. The browser acquires, renders and displays the data.
The browser gets the data from the server, loads the resources, renders the page and so on, and presents the page to the user.
This is the end of the article on "what is the HTTP request process in php". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, please share it for more people to see.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.