wgetbox-api

How to download a file from box using wget?


I've created a direct link to a file in box:

enter image description here

The previous link is to the browser web interface, so I've then shared with a direct link:

enter image description here

However, if I download the file with a wget I receive garbage.

How can I download the file with wget?


Solution

  • The solution was to add the -L option to follow the HTTP redirect:

    wget -v -O myfile.tgz -L https://ibm.box.com/shared/static/xxxxx.tgz