Is array syntax using square brackets in URL query strings valid?

后端 未结 6 944
遥遥无期
遥遥无期 2020-12-03 01:21

Is it actually safe/valid to use multidimensional array synthax in the URL query string?

http://example.com?abc[]=123&abc[]=456

It seem

6条回答
  •  春和景丽
    2020-12-03 01:37

    My understanding that square brackets are not first-class citizens anyway. Here is the quote: http://tools.ietf.org/html/rfc1738

    Other characters are unsafe because gateways and other transport agents are known to sometimes modify such characters. These characters are "{", "}", "|", "\", "^", "~", "[", "]", and "`".

提交回复
热议问题