Curly braces '{' and '}' are not allowed in a url per the RFC: https://datatracker.ietf.org/doc/html/rfc3986#section-2
You are only allowed to use unreserved characters:
ALPHA / DIGIT / "-" / "." / "_" / "~"
Or the reserved characters:
gen-delims = ":" / "/" / "?" / "#" / "[" / "]" / "@"
sub-delims = "!" / "$" / "&" / "'" / "(" / ")"
/ "*" / "+" / "," / ";" / "="
It used be in black in white in https://www.rfc-editor.org/rfc/rfc1738#page-3:
...Other characters are unsafe because
gateways and other transport agents are known to sometimes modify
such characters. These characters are "{", "}", "|", "\", "^", "~",
"[", "]", and "`".
All unsafe characters must always be encoded within a URL.
That said, not every system strictly enforces the RFC. However its the responsibility of the non-conforming system to adjust when an incompatibility arises.
For example from "man curl":
-g/--globoff
This option switches off the "URL globbing parser". When you set this option, you can
specify URLs that contain the letters {}[] without having them being interpreted by curl
itself. Note that these letters are not normal legal URL contents but they should be
encoded according to the URI standard.
Ultimately, this is something that should probably be taken up with the system expecting unsafe characters.