I am making the following curl request from the console to test one of my REST API
curl -X GET "http://localhost/api/v1/user/search.json?search_model[first_name]=abc&auth_token=xyzf"
But it is failing with the following error
curl: (3) [globbing] error: bad range specification after pos 58
I wrapped the endpoint with "
because &
is used to execute the precious command in console. What else am i missing? Why am i getting this error?
steve>curl --help | grep glob
-g, --globoff Disable URL sequences and ranges using {} and []
Try adding -g.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With