2.2.1 Request-URI
The URI requested appears in the Request-URI field as specified in [RFC2616] section 5.1.2. It used the syntax restrictions in [RFC2396], which specifies that the query component of a URI can use only the ASCII subset of characters and requires other characters to be percent-escaped as specified in [RFC2396] section 2.4.1.
Note Although [RFC2396] was later obsoleted by [RFC3986], that restriction is unchanged. Specifically, [RFC3986] section 3.4 states:
-
query = *( pchar / "/" / "?" )
This specification extends the Augmented Backus-Naur Form (ABNF) [RFC5234] for the query portion of the Request-URI field as follows:
-
query = *(<any CHAR except CTLs or "#">)
Furthermore, [RFC3986] section 3.3 specifies the syntax of the path component and states:
-
pchar = unreserved / pct-encoded / sub-delims / ":" / "@"
This specification extends this syntax to allow the "[" and "]" characters as follows:
-
pchar = unreserved / pct-encoded / sub-delims / ":" / "@" / "[" / "]"