Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

URL URN与URI #7

Open
wangzitiansky opened this issue Sep 20, 2020 · 0 comments
Open

URL URN与URI #7

wangzitiansky opened this issue Sep 20, 2020 · 0 comments
Labels
计算机网络:electric_plug: 包括TCP IP HTTP HTTPS

Comments

@wangzitiansky
Copy link
Owner

wangzitiansky commented Sep 20, 2020

URL URN与URI

我的其他文章 📚 文章汇总

本文的其他地址 GitHub

概念

URL URI URN 都是为了解决 怎么找到网络中的资源? 怎么标识资源?这两个问题,才抽象出来的概念,总的来说 URIURL URN的超集

  • URL

    RFC1739 定义, Uniform Resource Locator 表示资源的位置

  • URN

    RFC2141 定义,Uniform Resource Name 为资源提供的持久的位置无关的标识方式。

  • URI

    URL 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
    
参考
@wangzitiansky wangzitiansky created this issue from a note in 计算机网络 (HTTP) Sep 20, 2020
@wangzitiansky wangzitiansky added the 计算机网络:electric_plug: 包括TCP IP HTTP HTTPS label Sep 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
计算机网络:electric_plug: 包括TCP IP HTTP HTTPS
Projects
计算机网络
HTTP 协议
Development

No branches or pull requests

1 participant