当前位置:网站首页>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
边栏推荐
- [point cloud series] summary of papers related to implicit expression of point cloud
- nodeJs + websocket 循环小案例
- These vscode extensions are my favorite
- AUTOSAR from introduction to mastery 100 lectures (87) - key weapon of advanced EEA - AUTOSAR and DDS
- Nodejs + websocket cycle small case
- Mui wechat payment pit
- Remove the status bar
- 2020最新Android大厂高频面试题解析大全(BAT TMD JD 小米)
- Playwright contrôle l'ouverture de la navigation Google locale et télécharge des fichiers
- XML
猜你喜欢
LeetCode_DFS_中等_695.岛屿的最大面积
You and the 42W bonus pool are one short of the "Changsha bank Cup" Tencent yunqi innovation competition!
缘结西安 | CSDN与西安思源学院签约,全面开启IT人才培养新篇章
[point cloud series] neural opportunity point cloud (NOPC)
LeetCode_ DFS_ Medium_ 695. Maximum area of the island
Esp32 vhci architecture sets scan mode for traditional Bluetooth, so that the device can be searched
./gradlew: Permission denied
RTOS mainstream assessment
Solve the problem of Oracle Chinese garbled code
FatFs FAT32 learning notes
随机推荐
nodejs + mysql 实现简单注册功能(小demo)
MySQL basic statement query
GIS practical tips (III) - how to add legend in CASS?
Super 40W bonus pool waiting for you to fight! The second "Changsha bank Cup" Tencent yunqi innovation competition is hot!
torch. Where can transfer gradient
These vscode extensions are my favorite
[quick platoon] 215 The kth largest element in the array
[point cloud series] pointfilter: point cloud filtering via encoder decoder modeling
@Excellent you! CSDN College Club President Recruitment!
Is Hongmeng system plagiarism? Or the future? Professional explanation that can be understood after listening in 3 minutes
"Xiangjian" Technology Salon | programmer & CSDN's advanced road
AUTOSAR from introduction to mastery 100 lectures (52) - diagnosis and communication management function unit
[point cloud series] so net: self organizing network for point cloud analysis
Lpddr4 notes
Isparta is a tool that generates webp, GIF and apng from PNG and supports the transformation of webp, GIF and apng
2021年6月程序员工资统计,平均15052元,你拖后腿了吗?
【行走的笔记】
Using open to open a file in JNI returns a - 1 problem
5道刁钻的Activity生命周期面试题,学完去吊打面试官!
交叉碳市场和 Web3 以实现再生变革