rfc1738

Is question mark in URL part of query string?

♀尐吖头ヾ 提交于 2019-12-06 00:11:04
问题 TL;TR: Is (first) question mark in URL part of query or is is just a separator followed by query? The RFC 1738, section 3.3, suggests that the "?" (question mark) is not part of the query string, but just separates it from the path: http://<host>:<port>/<path>?<searchpart> Grammar presented in the RFC 3986, Appendix A., also indicate the "?" is not part of the actual query string: URI = scheme ":" hier-part [ "?" query ] [ "#" fragment ] Now, let's consider two URLs: http://server.com/api

Must '@' and '%40' be treated equivalently in URL paths?

久未见 提交于 2019-12-02 03:49:23
问题 Follow up to Can I use an at symbol (@) inside URLs? Based on the top voted answer, the @ is not a reserved character in the URL path (although it is in the host). However, given an @ in the path, is the URL-encoded form interchangeable? In other words, is twitter.com/@user strictly equivalent to twitter.com/%40user ? In practice it seems like they're often used interchangeably, but curious if that is strictly the case (e.g. AbC@gmail.com is technically different from abc@gmail.com , but

Must '@' and '%40' be treated equivalently in URL paths?

ぃ、小莉子 提交于 2019-12-02 01:52:44
Follow up to Can I use an at symbol (@) inside URLs? Based on the top voted answer , the @ is not a reserved character in the URL path (although it is in the host). However, given an @ in the path, is the URL-encoded form interchangeable? In other words, is twitter.com/@user strictly equivalent to twitter.com/%40user ? In practice it seems like they're often used interchangeably, but curious if that is strictly the case (e.g. AbC@gmail.com is technically different from abc@gmail.com , but nearly everyone treats them the same). More broadly, when do characters and there URL-encoded version need