If I try to pass a URL to curl that contains brackets, it fails with an error:
$ curl \'http://www.google.com/?TEST[]=1\' curl: (3) [globbing] illegal charac
Globbing uses brackets, hence the need to escape them with a slash \. Alternatively, the following command-line switch will disable globbing:
\
--globoff (or the short-option version: -g)
--globoff
-g
Ex:
curl --globoff https://www.google.com?test[]=1