美元符号 $ 在 url 中有什么作用? [英] What does dollar sign $ do in url?
问题描述
我一直在阅读 $ !;.,
是 url 中的保留"字符.但我找不到他们保留什么.
I have been reading that $ ! ; . ,
are 'reserved' chars in url. But I can not find what are they reserved for.
/ path delimiter
: port
? query
& glue get params
= param=val
\# link anchor
+ space
.
我的特定
问题:
有谁知道什么是 $ !;.,
用于?:
在请求 uri 中有什么特殊含义吗?
My specific
questions:
Does anyone know what are $ ! ; . ,
used for?
Does :
have any special meaning in request uri?
推荐答案
RFC 2396 已过时.
RFC 2396 is obsolete.
有关规范的现代版本,请参阅:
For modern versions of the spec, see:
- RFC3987 (in relation to IRI's); and
- RFC3986 (in relation to URI's).
是的,在路径部分用作分隔符.
Yes, that is used as a delimiter in the path part.
是的,它用作端口的前缀,但它还有其他作用,例如用户信息分隔符和主机说明符 IP 样式的分隔符.
Ye, it is used as a prefix for port, but it has other roles such as the user info separator, and a delimiter for IP styles of host specifiers.
令人惊讶的是,= 字符不是通用 URL、URI 或 IRI 语法的一部分.它只有 http(s) 协议具有特殊含义.这不是 URL/IRI/URI 固有的
Suprisingly, the = character is not part of the general URL, URI nor IRI syntax. It has a special meaning only the the http(s) protocols. This is not intrinsic to URL/IRI/URI
+ 代替空格的作用不是 URL/URI/IRI 语法的一部分.它只是一些 PHP 程序为了漂亮的 URL 目的而方便的发明.
The role of + as a substitute for space is NOT part of the URL/URI/IRI syntax. It is merely a convenient invention of some PHP programs for pretty URL purposes.
这些在 URL/URI/IRI 语法中没有特殊含义.它们可以是子分隔符生成的一部分,可以用于用户信息部分、未来 IP 部分、路径段或主机部分.
These have no special meaning in the URL/URI/IRI syntax. They can be part of the sub-delimiters production, which can be used in the user info part, future-IP part, path segment or a host part.
这篇关于美元符号 $ 在 url 中有什么作用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!