What happens when you type an URL in the browser and press enter?

What happens when you type an URL in the browser and press enter?

1. You type maps.google.com into the address bar of your browser.

2. The browser checks the cache for a DNS record to find the corresponding IP address of maps.google.com.

3. If the requested URL is not in the cache, ISP’s DNS server initiates a DNS query to find the IP address of the server that hosts maps.google.com.

4. Browser initiates a TCP connection with the server.

5. The browser sends an HTTP request to the web server.

6. The server handles the request and sends back a response.

7. The server sends out an HTTP response.

8. The browser displays the HTML content (for HTML responses which is the most common).

原文地址:https://www.cnblogs.com/lightwindy/p/8548918.html

时间: 2024-08-30 14:49:46

What happens when you type an URL in the browser and press enter?的相关文章

Explain in detail the steps/processes that occur from the moment you type a URL in a browser and hit enter

In an extremely rough and simplified sketch, assuming the simplest possible HTTP request, no proxies and IPv4 (this would work similarly for IPv6-only client, but I have yet to see such workstation): browser checks cache; if requested object is in ca

E212: Can't open file for writing Press ENTER or type command to continue

E212: Can't open file for writing Press ENTER or type command to continue 出现这个错误的原因可能有两个: 1.当前用户的权限不足 2.此文件可能正被其他程序或用户使用. 一般错误原因都是前者,解决方案是在使用vi命令打开文件时,前面加上sudo来临时提供管理员权限,比如使用命令"sudo vi hosts"打开编辑文件. 由此看来,sudo命令是很有用的,当我们执行某种操作系统提示诸如"operatio

vi编辑文件保存后,提示""vimrc" E212: Can't open file for writing Press ENTER or type command to continu"

出现这个错误的原因可能有两个: 1.当前用户的权限不足: 2.此文件可能正被其他程序或用户使用. 一般错误原因都是前者,解决方案是在使用vi命令打开文件时,前面加上sudo来临时提供管理员权限,比如使用命令“sudo vi vimrc”打开编辑文件. vi编辑文件保存后,提示""vimrc" E212: Can't open file for writing Press ENTER or type command to continu" 原文地址:https://w

Using ASP.Net WebAPI with Web Forms

Asp.Net WebAPI is a framework for building RESTful HTTP services which can be used across a wide range of clients including web, phone and desktop applications. With WebAPI we can use XML and JSON to send and retrieve data from the service. The use o

Cracking the coding interview汇总目录

很久之前刷的CTCI的题目,都快忘记了,做个分类汇总,再重新好好复习一遍. Chapter 1 | Arrays and Strings 1.1 Implement an algorithm to determine if a string has all unique characters. What if you can not use additional data structures? 1.2 Write code to reverse a C-Style String. (C-Str

Opening Default document on IIS (HTML With WebAPI)

Question: I've a deployed ASP.NET Web API with a website on the same folder that consume it. When I type the URL on the Browser such as http://domain.com/ it returns a 404, but if I typehttp://domain.com/index.html it works! I wanna know if there's a

McGill Mini Assignment #7 COMP

McGill Mini Assignment #7 COMP 206Vybihal School of Computer Science Page 1 of 7CGI and Basic Web InterfacingDue: December 3, 2019 on myCourses at 23:55Lab J will provide some background help for this mini assignment.Week 10, slides 28 to 44 will hel

puppeteer的使用

1. 2. // puppeteer元素基本操作-输入文本与元素点击 const puppeteer = require('puppeteer') async function fun() { const browser = await puppeteer.launch({ headless: false, defaultViewport: { width: 1366, height: 768 } }) const page = await browser.newPage() await pag

配置双机

配置/etc/security/limits文件 执行此任务可以在“/etc/security/limits”文件中设置default的各种限制参数. 操作步骤 以root用户登录双机中主节点. 编辑“/etc/security/limits”文件. #vi /etc/security/limits 修改文件中以下内容: default: fsize =-1 core =-1 cpu =-1 data =-1 rss =-1 stack =200000 nofiles =-1 -1表示无限制.