Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

感觉自己对这一块理解不够透彻,Google了一下没有找到比较好的资料,所以提出问题问一下,希望有人能回答,谢谢!


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
167 views
Welcome To Ask or Share your Answers For Others

1 Answer

hosts文件影響本機的域名解析, 用在實際TCP連接到服務器之前

Host header是HTTP請求的一部分, 只在應用層有意義, 用在連接到服務器之後

簡單地說絕大部分時候沒關係, 可能的最強的關係是 (當域名被hosts文件而不是DNS服務器解析時) 會含有相同主機名, 談不上"同".

可以找些 "當在瀏覽器中輸入URL時發生了什麼" 這樣的文章看


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...