-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Labels
计算机网络:electric_plug:包括TCP IP HTTP HTTPS包括TCP IP HTTP HTTPS
Description
URL URN与URI
我的其他文章 📚 文章汇总
本文的其他地址 GitHub
概念
URL URI URN 都是为了解决 怎么找到网络中的资源? 怎么标识资源?这两个问题,才抽象出来的概念,总的来说 URI 是 URL URN的超集
-
URLRFC1739 定义,
Uniform Resource Locator表示资源的位置 -
URNRFC2141 定义,
Uniform Resource Name为资源提供的持久的位置无关的标识方式。 -
URIURL URN的超集,用来区分资源Uniform Resource Identifier统一资源标识符格式:
URI = scheme ":" hier-part ["?" query][#fragment]
scheme 协议名: http https
hier-part = "//" userinfo host port
query 查询参数
fragment 段落名例子
https://github.com/wangzitiansky/Learning#%E5%8D%9A%E5%AE%A2 这个 URI 中 scheme = https host = github.com path = /wangzitiansky/Learning fragment = #%E5%8D%9A%E5%AE%A2
参考
Metadata
Metadata
Assignees
Labels
计算机网络:electric_plug:包括TCP IP HTTP HTTPS包括TCP IP HTTP HTTPS