url 和uri区别_URI和URL有什么区别?

url 和uri区别

url 和uri区别

In IT systems we use a lot of different terms. URI and URL are one of the most popular terms used in IT especially in programming. They can be confused or used interchangeably but they are not the same. In this tutorial, we will explain URI, URL, differences, and similarities between URI and URL.

在IT系统中,我们使用许多不同的术语。 URI和URL是IT中最流行的术语之一,尤其是在编程中。 它们可以混淆或互换使用,但是它们并不相同。 在本教程中,我们将解释URI,URL,URI和URL之间的区别和相似之处。

什么是URI(统一资源标识符)? (What Is URI (Unified Resource Identifier)?)

Unified Resource Identifier or URI is used to provide name, locator, or both for an online resource. Online means can be accessed via a computer network like LAN, WAN, internet, etc.  URI is the most generic resource identifier where it can be used for different resources like Book, Web Page, QR Code etc. Here are some URI examples to understand. URI is defined with the RFC 3986 where URL is defined with the same RFC too.

统一资源标识符或URI用于为在线资源提供名称,定位符或同时提供二者。 可以通过局域网,局域网,广域网,互联网等计算机网络访问在线方式。URI是最通用的资源标识符,可用于诸如书籍,网页,QR码等各种资源。这是一些需要理解的URI示例。 URI是使用RFC 3986定义的,URL也是使用相同的RFC定义的。

ISBN 0-486-28557-3

urn:isbn:0-486-28557-3

https://www.poftut.com

什么是URL(统一资源定位符)? (What Is URL (Unified Resource Locator)?)

Uniform Resource Locator or URL is a subset of the URI which means all URLs are also a URI. URL provides the scheme and location of the resource. URL resource is online which means it can be accessed from LAN, WAN, Internet-like network. URLs generally used in web browsers and applications in order to specify the remote resource like a web page, API, etc. Below are some URL examples. URL is defined with the RFC 3986 where URI is defined with the same RFC too.

统一资源定位符或URL是URI的子集,这意味着所有URL也是URI。 URL提供资源的方案和位置。 URL资源是在线的,这意味着可以从LAN,WAN,类似Internet的网络访问它。 通常在网络浏览器和应用程序中使用的URL,用于指定诸如网页,API等的远程资源。以下是一些URL示例。 URL用RFC 3986定义,而URI也用相同的RFC定义。

https://www.poftut.com

smb://poftut.com

ldap://poftut.com:123

ftp://ftp.poftut.com/rfc/rfc1808.txt

http://www.poftut.com/rfc/rfc2396.txt

ldap://[2001:db8::7]/c=GB?objectClass?one

mailto:[email protected]

news:comp.infosystems.www.poftut.com

tel:+1-816-555-1212

telnet://10.0.0.1:80/

urn:oasis:names:specification:docbook:dtd:xml:4.1.2

URI与URL (URI vs URL)

Well, let’s compare the URI with the URL. Simply we can say that URI is the most generic term which also includes the URL. We list things about URI vs URL.

好吧,让我们比较一下URI和URL。 简单地说,URI是最通用的术语,其中也包括URL。 我们列出了有关URI和URL的信息。

  • URL is a `locator` where URI is `identifier`.

    URL是一个“定位器”,其中URI是“标识符”。
  • URL is specific for web resources where URI is general which contains URL.

    URL是特定于Web资源的,其中URI是包含URL的常规URL。
  • URL has to have a protocol like http, ftp, tel etc where URI has not to have a protocol.

    URL必须具有HTTP,ftp,tel等协议,而URI不必具有协议。
  • Both URL and URI can be used for relative and absolute links.

    URL和URI均可用于相对和绝对链接。
  • Both URL and URI can accept query parameters.

    URL和URI都可以接受查询参数。
  • Both URL and URI can have fragmented identifiers.

    URL和URI都可以具有分段标识符。
  • According to the W3C definition URL and URI are the same thing where they can be used for each other interchangeably.

    根据W3C的定义,URL和URI是相同的东西,它们可以互换使用。
LEARN MORE  What Is XML (eXtensible Markup Language)?
了解更多什么是XML(可扩展标记语言)?

翻译自: https://www.poftut.com/what-is-difference-between-uri-and-url/

url 和uri区别

  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值