url - 许多 URI 语法中 "://"的来源

标签 url syntax history

关闭。这个问题是off-topic .它目前不接受答案。












想改善这个问题吗? Update the question所以它是 on-topic对于堆栈溢出。

11 年前关闭。




Improve this question




有谁知道在大多数 URI 语法中“://”或“//”来自哪里?
例如,为什么不写成“http:www.example.com”?

最佳答案

a1kmm 的回答对于 URL 的特定应用很有用,但是如果您对双斜杠的语义起源感到好奇,请查看这篇文章:

http://www.w3.org/DesignIssues/Axioms.html

It is worth noting that the syntax with the double slash can in fact be extended for use with a triple slash if one wanted to be able to start at any level in a much more complicated hierarchical structure. For example, suppose international telephone numbers were to be extended to cover a planetary code in the future. Then the planetary code could be attached to the front of the international code. The triple slash could introduce the interplanetary code, and the double slash would introduce the international code. Indeed, this is how the double slash came to be: when hierarchical naming schemes such as those in unix file systems was extended to a networks file system on the Apollo domain the extra slash was introduced. Similarly, Microsoft NT networking now uses double backslash in exactly the same way.

关于url - 许多 URI 语法中 "://"的来源,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1388194/

相关文章:

javascript - 如何通过修改 HTML 页面的 URL 来执行 javascript 函数?

javascript - 真实世界 URL 的 URL 验证正则表达式

php - 如何为此查询编写 PDO LIKE 查询 CREATE TABLE newtable LIKE oldtable;

ruby-on-rails - Haml 语法 : split a line to a couple of rows

python - "None not in"与 "not None in"

mysql - 如何使用git来管理像mysql这样的数据库字段文本中的更新历史?

repository - 我在哪里可以找到或捐赠具有历史意义的软件?

java - 如何使用 Java 将 url(http 文件)上传到我的网络服务器?

java - Struts 2 带点的动态 URL 模式

jquery - JQM (jQueryMobile) 访问 URL 历史记录?