Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我知道我需要在 URI 的查询字符串中对参数的参数进行编码,但是参数名称呢,它们也需要编码吗?
是的。查询字符串中的特殊字符在查询字符串中的任何位置都有其特殊含义。
如果参数名称是foo=barthen?foo=bar=something将不会被解析为foo=barequals something。
foo=bar
?foo=bar=something
something