curl -h or curl --header not working curl -h or curl --header not working curl curl

curl -h or curl --header not working


Your url has & sign. and this is making end of command on there(and running at background). You can remove this error by using quotes around. Like this

curl "https://api.box.com/2.0/folders/FOLDER_ID/items?limit=2&offset=0" -H "Authorization: Bearer ACCESS_TOKEN"

Hope this helps.


There seem to be two problems:

  1. The '&' in the middle of the URL passed to curl,
  2. The order of the statements. The curl manual reports a different order for the statements. Example:

    curl -H "Authorization: Bearer AUTH_KEY" "https://api.box.com/2.0/folders/0/items?limit=2&offset=0"

This should be the complete solution.