pm-ext wrote: ↑2023-09-23, 08:33
I am not sure if the brackets are valid in HTTP standard.
They aren't, unless they are %-encoded. See
RFC 3986 Appendix A
(I'll break it down for your convenience):
URI = scheme ":" hier-part [ "?" query ] [ "#" fragment ]
query = *( pchar / "/" / "?" )
pchar = unreserved / pct-encoded / sub-delims / ":" / "@"
unreserved = ALPHA / DIGIT / "-" / "." / "_" / "~"
sub-delims = "!" / "$" / "&" / "'" / "(" / ")"
/ "*" / "+" / "," / ";" / "="
So query = a string of
pchars and / or ? delimiters, where
pchar boils down to alphanumeric characters, digits, and
:@-._~!$&'()*+,;=
and anything else should be %-encoded. including
[ and
]
"The world will not be destroyed by those who do evil, but by those who watch them without doing anything." - Albert Einstein
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite