Question

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?

Was it helpful?

Solution

steve>curl --help | grep glob
 -g, --globoff       Disable URL sequences and ranges using {} and []

Try adding -g.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top