URI(URL) 允许的字符
source link: https://blog.p2hp.com/archives/8058
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
URI所允许的字符分作保留与未保留。保留字符是那些具有特殊含义的字符. 例如, 斜线字符用于URL (或者更一般的, URI)不同部分的分界符. 未保留字符没有这些特殊含义. 百分号编码把保留字符表示为特殊字符序列。上述情形随URI与URI的不同版本规格会有轻微的变化。
RFC 3986 section 2.2 保留字符 (2005年1月)
! * '( ) ; : @& = + $ ,/ ? # [ ]
RFC 3986 section 2.3 未保留字符 (2005年1月)
A B CD E F G HI J K L MN O P Q RS T U V WX Y Z
a b cd e f g hi j k l mn o p q rs t u v wx y z
0 1 23 4 5 6 78 9 - _ .~
ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_.~!*'();:@&=+$,/?#[]
URI中的其它字符必须用百分号编码。
百分号编码
Recommend
-
37
URI syntax: <scheme>:<scheme-specific-part> generic URI syntax: <scheme>://<authority><path>?<query> 此前对 URI、URL 的定义一知...
-
31
RFC 7230 与 RFC 3986 定义了 HTTP/1.1 标准并对 URI 的编解码问题作出了规范。但是,文本形式的规范和最终落地的标准之...
-
9
【前情提要】最近开发过程中遇到一个Tomcat中IllegalArgumentException的报错,所以在这里记录一下。 壹、错误现象在用Get请求是当URL中包含特殊字符,比如:<、>...
-
11
Die URI.parse Die; Long Live the Zen of Addressable May 12, 2020 URI.parse is a Ruby call I've written a thousand pl...
-
13
添加URL/HTML字符转义功能 浏览:1925次 出处信息 今天同事想用DataReport来展...
-
6
Responses (17)There are currently no responses for this story.Be the first to respond.You have 2 free member-only stories left this month...
-
5
URI、URL、URN 差別 Universal Resource Identifier 統一資源標誌符 在某一規則下能把一個資源獨一無二標示出來 https:...
-
9
一、URLURL 全称为 Uniform Resource Locator,意为统一资源定位符。URL 是一串字符串,这些字符可以是字母,数字和特殊符号。 URL 是给定唯一资源的地址,指向该唯一资源的位置。URL的
-
10
一文搞清楚URL和URI的区别到底是什么 – Android开发中文站 Android开发中文站 ...
-
0
Url中的字符转义 2024-01-19 1 分钟阅读 遇到个怪问题,设置http_proxy的时候有用户密码,命令如下: export http_proxy=http://user\2016:PmnQ [email protected]:3128
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK