我正在从控制台发出以下curl请求,以测试我的REST API之一
curl -X GET "http://localhost/api/v1/user/search.json?search_model[first_name]=abc&auth_token=xyzf"
但是它失败并显示以下错误
curl: (3) [globbing] error: bad range specification after pos 58
我用来包装端点,"
因为&
它用于在控制台中执行宝贵的命令。我还想念什么?为什么会出现此错误?
steve>curl --help | grep glob
-g, --globoff Disable URL sequences and ranges using {} and []
尝试添加-g。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句