Semicolon as URL query separator

后端 未结 4 1347
灰色年华
灰色年华 2020-11-29 03:02

Although it is strongly recommended (W3C source, via Wikipedia) for web servers to support semicolon as a separator of URL query items (in addition to ampersand), it does no

4条回答
  •  南方客
    南方客 (楼主)
    2020-11-29 03:08

    As long as your HTTP server, and your server-side application, accept semicolons as separators, you should be good to go. I cannot see any drawbacks. As you said, the W3C spec is on your side:

    We recommend that HTTP server implementors, and in particular, CGI implementors support the use of ";" in place of "&" to save authors the trouble of escaping "&" characters in this manner.

提交回复
热议问题