???????? ?????????????? ???????? ?????? ???????? ?? ?????? ???????? ???????? ???????????????

???????? ?????????????? ???????? ?????? ???????? ?? ?????? ???????? ???????? ???????????????

A common interview question that is asked to test the depth of knowledge of the interviewee.

??. ?????? ???????? https://www.xyz.com /my-tickets ???????? ???????? ?????????????? ?????? ??????????

The HTTPS protocol is used to instruct the browser to connect to the server via TLS in this instance. The website's domain name, which points to a particular IP address of a server, is www.xyz.com /my-tickets. Moreover, the path to the required resource via /my-tickets is arbitrary.

??. ?????? ?????????????? ???????????? ?????? ?????????? ?????? ?? ?????? ???????????? ???? ???????? ?????? ?????????????????????????? ???? ?????????????? ???? xyz.com. The browser has to determine which server on the Internet to connect to once you type the URL into the browser and hit enter. In order to do that, it looks for the IP address of the server hosting the website using the domain you typed. This page performs a DNS lookup. If we are able to find it in the cache, this determines it. In the absence of this, DNS searches domain name servers all the way down to the third level.

??. ?????????????? ?????????????????? ?????? ???????????????????? ???????? ?????? ????????????

Anywhere on the public Internet, TCP is used to route packets from client browser requests through the router, the Internet Service Provider (ISP), through an internet exchange to transfer ISPs or networks, and eventually to find the server with the IP address to connect to. Using this path will take you there less quickly. Rather, many websites use a CDN (like AWS CloudFront) to cache both static and dynamic content closer to the browser.


??. ?????????????? ?????????? ?????? ???????? ?????????????? ???? ?????? ????????????

Now that the browser is connected to the server, it complies with the HTTP(s) protocol's requirements for communication. To request the contents of the page, the browser first sends an HTTP request to the server. The body, headers, and request line of an HTTP request are all there.

??. ???????????? ?????????????????? ?????????????? ?????? ?????????? ???????? ?? ????????????????

Based on the information in the request line, headers, and body, the server accepts the request and decides how to process it. When a client makes a GET /page/ HTTP/1.1 request, the server gets the content at that URL, creates the response, and then sends it back with an HTTP status code.

??. ?????????????? ?????????????? ?????? ??????????????

After receiving the server response and before rendering the resource, the browser looks through the response headers for instructions. The Content-Type header lets the browser know that an HTML resource was received in the response body.

Although it looks like a highly time-consuming procedure, we know that after we press enter on the keyboard, a web page renders in just a few seconds. These processes take place in a matter of milliseconds before we are even aware of them. I hope that this post assists you in determining what occurs after you enter a URL into a browser.

#Cloudtek #content #URL #website #browser #technical #engineering #software

要查看或添加评论,请登录

社区洞察

其他会员也浏览了