是否允许使用未编码的等号字符 (=) 作为查询字符串的值?
假设我有以下 URL:
http://www.foo.com?key1=bar&key2=baz=egg
“baz”和“egg”之间是一个等号。 “baz=egg”算作 key2 的值还是 = 需要编码?
谢谢
Lets say i have the following URL:
http://www.foo.com?key1=bar&key2=baz=egg
Between "baz" and "egg" is an equals.
Does "baz=egg" count as value for key2 or has = to be encoded?
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
它可能取决于您的服务器配置,因此对其进行编码可能是个好主意,但当然在我的服务器上,上例中 key2 的值是“baz=egg”,因此不需要编码。
It may depend on your server configuration, so maybe its a good idea to encode it, but certainly on my server the value of key2 in the above example is 'baz=egg' and so encoding is not needed.