top | item 36020631 (no title) afn | 2 years ago By default, curl interprets braces and square brackets to expand into multiple URLs (similarly to bash and other shells). You can disable this, and use literal braces & brackets in URLs, by passing ‘-g’ (‘--globoff’). discuss order hn newest layer8|2 years ago Braces and square brackets (as well as double quotes) are not allowed unencoded in query strings, see the definition of pchar in https://datatracker.ietf.org/doc/html/rfc3986#section-3.4. __s__|2 years ago That's true. Although it will make the URL longer, I have decided to use encodeURIComponent to escape characters and avoid potential bugs.
layer8|2 years ago Braces and square brackets (as well as double quotes) are not allowed unencoded in query strings, see the definition of pchar in https://datatracker.ietf.org/doc/html/rfc3986#section-3.4. __s__|2 years ago That's true. Although it will make the URL longer, I have decided to use encodeURIComponent to escape characters and avoid potential bugs.
__s__|2 years ago That's true. Although it will make the URL longer, I have decided to use encodeURIComponent to escape characters and avoid potential bugs.
layer8|2 years ago
__s__|2 years ago