[计算机基础]URI与URL

URI : uniform resource identifier
统一资源标示符
用于指定Web资源的字符串,它定义了Web资源中的各个不同的部分。
ex:
http://example.org/absolute/URI/with/absolute/path/to/resource.txt
ftp://example.org/resource.txt
urn:issn:1535-3613

URL : uniform resource locator
统一资源定位符
URL是URI的一种,它定义了Web资源的足够多的信息(一般是HTTP协议)
一般包含HTTP协议的5个基本要素的
ex:
http://zh.wikipedia.org:80/w/index.php?title=Special:%E9%9A%8F%E6%9C%BA%E9%A1%B5%E9%9D%A2&printable=yes
五个元素:
1.传输协议
2.服务器
3.端口号
4.路径
5.查询

原文地址:https://www.cnblogs.com/hellenism/p/3870106.html