当前位置:网站首页>The interviewer dug a hole for me: what's the use of "/ /" in URI?
The interviewer dug a hole for me: what's the use of "/ /" in URI?
2022-04-23 13:24:00 【Zhu Xiaosi】
When we browse the web , You need to type http:// perhaps https:// At the beginning URL Address , similar http://honeypps.com, So here "://" perhaps "//" What's the use ?
Speaking of URL I have to say URI 了 . What do you use to tag resources on the server ? It's used URI(Uniform Resource Identifier), Uniform resource identifier .URI It often appears in the browser's address bar , Sometimes it's called “ network address ”, abbreviation “ website ”. however , Strictly speaking ,URI Not exactly the same as the web address , It contains URL(Uniform Resource Locator, Uniform resource locator ) and URN(Uniform Resource Name, Unified resource naming ).
because URL The popularity of , Narrowly , We can simply put URI and URL Think of it as equal .
Let's take a look URI The format of :
URI = scheme:[ //authority]path[?query][#fragment]
authority = [ userinfo @] host[: port]
- 1.
- 2.
Structure diagram is as follows :
The first part ,scheme, It can be translated into the agreement name , Indicates which protocol the resource should use to access . The most common is http and https 了 , Others are like :ftp、file etc. .
stay scheme after , It must be three specific characters “://”, It is the scheme Separate from the back . This is the main character of today , If it's just to distinguish , You can just use “:” this 1 Letters , instead of “://” this 3 Letters .
stay “://” after , It's called “authority” Part of , Represents the host name of the resource , The usual form is “host:port”, That is, host name plus port number . before authority It also includes identity information userinfo, namely “user:passwd@” In the form of , But it's not popular now , You can ignore . What does the following mean , I'm sure you all know .
When someone asks you :// What's the use , It's actually digging a hole . When we were interviewing , Often after answering a question , The interviewer will hold on to a point in your answer “ Dig deep ”, It can also be called “ Life taking questions ”, Over time we will form a habit , I always think there is something deep behind the problem , We need to rack our brains to think . there :// It's a typical counterexample .
stay 2009 year 10 month ,BBC A piece of news in "//" Use of .. Here I cut a picture of this report , As shown below :
In a Times article in October 2009, Berners-Lee admitted that the initial pair of slashes ("//") in a web address were "unnecessary". He told the newspaper that he easily could have designed web addresses without the slashes. "There you go, it seemed like a good idea at the time", he said in his lighthearted apology.
2009 year 10 month , Tim, the father of the World Wide Web · berners · Admitted by Li , It's a mistake to put a double slash in front of the website . At a seminar in Washington, D.C., he said , What he originally designed was to add “//” The plan , It's neither meaningful nor necessary . If there's a chance to do it again , He will take out the double slash .
Right , You're not mistaken ,URI Inside “//” Nothing diao use .
Why tim · berners · Li said “//” Useless is useless ? Add Tim here · berners · Li's introduction .
7 month 27 Japan , At the Olympic Stadium in London 2012 At the opening ceremony of the London Olympic Games , A British scientist is on the stage , Accept the applause , This “ Thank you Tim ” The whole world , To be a highlight of the opening ceremony . He is the inventor of the Internet 、 Recognized by the industry as “ The father of the Internet ” Tim, an Englishman of • berners • Li (Tim Berners-Lee). In the eyes of the whole world , He made a symbolic remark in front of a computer :“This is for Everyone”, The meaning is : The Internet is for everyone . Tim • berners • Lee is not only regarded as the pride of the British , He also indisputably won the respect of the whole world .
Not only did his invention change the way of human life , Changed the traditional model of global information exchange , It brings a new information age ; Even greater is , For the global popularity of the Internet , Let everyone have unrestricted access to the Internet , He renounced as “WWW” Patent application . Could have been in money with Bill • Gates is no match , But he decided to open his Internet achievements to the world free of charge , The individual has lost his precious wealth , But let all mankind, including us, benefit , Today we can click almost any website without “WWW”, This means that we are always sharing Tim's selfless dedication .1980 In Tim • berners • The program Li wrote laid the foundation of the Internet , To 2007 year 10 month , The number of global websites has broken through 2.5 One hundred million , As one can imagine , His dedication to the rapid development of the global Internet , Also let all network operators have made countless money .
1955 year 6 month 8 Japan , Tim • berners • Lee was born in southwest London, England . His parents are computer scientists , They are all involved in the world's first commercial computer —— Manchester 1 type (Manchester Mark I) Design and construction of .1976 Tim received his first class honours degree in physics from Oxford University .1980 year 6 Month to 9 month , Tim at CERN (CERN) when , Put forward an original idea : Create a hypertext system based project , So that distributed computers can share and update information . meanwhile , He created ENQUIRE Prototype system .l990 year , Tim was at that time NEXTSTEP On the network system , Developed the world's first web server and the first client browser editor , Established the world's first WWW Website . He deserves to be the founder of the global Internet . today ,WWW、http Has become people's daily vocabulary , The Internet has affected our work 、 entertainment 、 Social and almost all other fields . But Tim never takes pride in himself , When it comes to achievement , He always says... Calmly :“ I didn't invent the Internet , I just found a better way .”
Today's knowledge points , you GET Here we are ?
References
- https://en.wikipedia.org/wiki/Uniform_Resource_Identifier
- https://en.wikipedia.org/wiki/Tim_Berners-Lee
- http://blog.sina.com.cn/s/blog_3e4d3af301017fnr.html
Want to know more ? sweep Trace the QR code below and follow me
The background to reply ” Add group “ Access to official account entrance
版权声明
本文为[Zhu Xiaosi]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204231232410634.html
边栏推荐
- Common interview questions and detailed analysis of the latest Android developers in 2020
- hbuilderx + uniapp 打包ipa提交App store踩坑记
- These vscode extensions are my favorite
- [point cloud series] summary of papers related to implicit expression of point cloud
- [quick platoon] 215 The kth largest element in the array
- CSDN高校俱乐部“名师高校行”——湖南师范大学站
- 交叉碳市场和 Web3 以实现再生变革
- 100 GIS practical application cases (53) - making three-dimensional image map as the base map of urban spatial pattern analysis
- RTOS mainstream assessment
- C语言之字符串与字符数组的区别
猜你喜欢
[untitled] PID control TT encoder motor
Hbuilderx + uniapp packaging IPA submission app store stepping on the pit
Imx6ull QEMU bare metal tutorial 1: GPIO, iomux, I2C
解决Oracle中文乱码的问题
AUTOSAR from introduction to mastery 100 lectures (81) - FIM of AUTOSAR Foundation
web三大组件之Servlet
【动态规划】221. 最大正方形
【快排】215. 数组中的第K个最大元素
RTOS mainstream assessment
Analysis of the latest Android high frequency interview questions in 2020 (BAT TMD JD Xiaomi)
随机推荐
LeetCode_DFS_中等_695.岛屿的最大面积
[tensorflow] sharing mechanism
PyTorch 21. NN in pytorch Embedding module
Android clear app cache
Machine learning -- model optimization
@Excellent you! CSDN College Club President Recruitment!
nodeJs + websocket 循环小案例
【行走的笔记】
mui picker和下拉刷新冲突问题
TCP 复位gongji原理和实战复现
[dynamic programming] 221 Largest Square
TERSUS笔记员工信息516-Mysql查询(2个字段的时间段唯一性判断)
Solve the problem of Oracle Chinese garbled code
5道刁钻的Activity生命周期面试题,学完去吊打面试官!
Machine learning -- PCA and LDA
XML
【动态规划】221. 最大正方形
torch. Where can transfer gradient
AUTOSAR from introduction to mastery lecture 100 (84) - Summary of UDS time parameters
100 GIS practical application cases (53) - making three-dimensional image map as the base map of urban spatial pattern analysis