当前位置:网站首页>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则必须提供足够的信息来定位,是绝对的。
边栏推荐
- laravel+redis 生成订单号-当天从1开始自增
- C # customize and dynamically switch cursor
- TypeError: Argument ‘angle‘ can not be treated as a double
- 45 year old programmer tells you: why do programmers want to change jobs? It's too true
- Mathematical knowledge: finding combinatorial number III - finding combinatorial number
- 【JS给元素添加属性:setAttribute;classList.remove;classList.add;】
- [content of content type request header]
- Test essential tool - postman practical tutorial
- 哪有什么未来可期,不过是打工人临死前最后的幻想罢了
- 农产品换房?“变相”购房补贴!
猜你喜欢

Using recyclerreview to show banner is very simple

关于白盒测试,这些技巧你得游刃有余~

那些一门心思研究自动化测试的人,后来怎样了?

Sun Yuchen told Swiss media Bilan that the bear market will not last long

zabbix如何配置告警短信?(预警短信通知设置流程)

短信在企业中的应用有哪些?

PHP crawls data through third-party plug-ins

软件测试的可持续发展,必须要学会敲代码?

What will Web3 bring in the future?

Electron pit Addon
随机推荐
AS400 大廠面試
Ks009 implementation of pet management system based on SSH
Opencv -- Notes
求两个线段公共部分的长度
Sitge joined the opengauss open source community to jointly promote the ecological development of the database industry
Log logrus third party library usage
Using recyclerreview to show banner is very simple
微生物检测,土壤微生物的作用有哪些?
Try new possibilities
Mathematical knowledge: finding combinatorial number IV - finding combinatorial number
Batch import of Excel data in applet
[simulation] 922 Sort Array By Parity II
Zero of DC learning notes -- overview and basic process introduction
[fundamentals of wireless communication-14]: illustrated mobile communication technology and application development-2-the first generation mobile analog communication big brother
亲测有效,快速创建JMeter桌面快捷方式
短信在企业中的应用有哪些?
微生物安全与健康,什么是生物处理?
Open3d point cloud color rendering
远程办公如何保持高效协同,实现项目稳定增长 |社区征文
Mysql database foundation: process control