原文:https://ittavern.com/url-explained-the-fundamentals/
标题:URL explained - The Fundamentals
作者:wop
在这篇文章中,我将尝试解释 URL 的语法和使用以及 URI、URL、URN 和 URC 之间的区别。
URL

这将是本文的示例:
https://username:password@www.example.com:443/path/to/page.html?query=file#fragment
此 URL 的格式基于 URI 通用语法构建,如下所示 [2]:
URI = scheme ":" ["//" authority] path ["?" query] ["#" fragment]
请注意,“authority”可以具有以下语法:
authority = [userinfo "@"] host [":" port]
以下部分我们将提供更多信息。
参考资料
- https://cv.jeyrey.net/img?equivocal-urls
- https://developer.mozilla.org/en-US/docs/Learn/Common_questions/Web_mechanics/What_is_a_URL
- https://stackoverflow.com/questions/4913343/what-is-the-difference-between-uri-url-and-urn
- http://www.ietf.org/rfc/rfc3986.txt
- https://www.w3.org/TR/uri-clarification/
- https://en.wikipedia.org/wiki/Uniform_Resource_Identifier