当前位置:网站首页>URL和URI
URL和URI
2022-07-01 01:11:00 【冥王哈迪尔】
URL
- Uniform Resource Locator
- 统一资源定位器
- 是www的统一资源定位标志,简单地说URL就是web地址,俗称“网址”
- URL是对互联网上得到的资源的位置和访问方法的一种简洁表示,是互联网上标准资源的地址
- 是因特网的万维网服务程序上用于指定信息位置的表示方法
- 因特网上的可用资源可以用简单字符串来表示,该文档就是描述了这种字符串的语法和语义。而这些字符串则被称为:“统一资源定位器”(URL)
组成
- URL由三部分组成:资源类型、存放资源的主机域名、资源文件名
- HTTP URL的形式
http://<host>:<port>/<path>?<searchpart>
- 文件URL的形式
file://<host>/<path>
URI
- Uniform Resource Identifier
- 统一资源标识符
- 一个用于标识某一互联网资源名称的字符串
- URI由包括确定语法和相关协议的方案所定义
- 该种标识允许用户对任何(包括本地和互联网)的资源通过特定的协议进行交互操作
- 只要是可以唯一标识资源的都被称为URI
组成
- 第一部分是协议(或称为服务方式);第二部分是存有该资源的主机IP地址(有时也包括端口号);第三部分是主机资源的具体地址
- 具体URI的格式
[协议名]://[用户名]:[密码]@[服务器地址]:[服务器端口号]/[路径]?[查询字符串]#[片段ID]
区别
URI和URL都定义了资源是什么,但URL还定义了该如何访问资源。
URL是一种具体的URI,它是URI的一个子集,它不仅唯一标识资源,而且还提供了定位该资源的信息。
URI 是一种语义上的抽象概念,可以是绝对的,也可以是相对的,而URL则必须提供足够的信息来定位,是绝对的。
边栏推荐
- The personal test is effective, and the JMeter desktop shortcut is quickly created
- flutter报错 -- The argument type ‘Function‘ can‘t be assigned to the parameter type ‘void Function()?‘
- System settings large page
- Check the disk usage of MySQL database
- 一站式洞察行业热点,飞瓜数据B站新功能「流量大盘」上线!
- 哪有什么未来可期,不过是打工人临死前最后的幻想罢了
- Basic knowledge II - Basic definitions related to sta
- 3dsmax plug-in development traversal node object and object acquisition and inode transformation matrix description
- PHP array splicing MySQL in statement
- org. redisson. client. Redisresponsetimeoutexception: redis server response timeout (3000 ms) error resolution
猜你喜欢
随机推荐
Microbiological health, why is food microbiological testing important
[stack] 921 Minimum Add to Make Parentheses Valid
Handsontable data grid component
PHP array splicing MySQL in statement
正向代理和反向代理快速理解
7-2 拼题A打卡奖励 dp
QT web 开发 - video -- 笔记
Strictmode jamming and leakage detection -strictmode principle (2)
求两个线段公共部分的长度
直播商城源码,实现左右联动商品分类页面
工作6年,来盘点一下职场人混迹职场的黄金法则
Understanding and application of Qt5 layout in creation
zabbix如何配置告警短信?(预警短信通知设置流程)
Sitge joined the opengauss open source community to jointly promote the ecological development of the database industry
VirtualBox 安装增强功能
Last day of the second quarter
Qt5 mvc: revealing the secrets of data visualization
短视频平台开发,依靠DrawerLayout实现侧滑菜单效果
Composants de la grille de données portatifs
[dynamic planning] path dp:931 Minimum Falling Path Sum





![[无线通信基础-14]:图解移动通信技术与应用发展-2-第一代移动模拟通信大哥大](/img/fa/f9bad44147ba9af21183b7bd630e32.png)



