如何使用wget从盒子下载文件? [英] How to download a file from box using wget?

查看:38
本文介绍了如何使用wget从盒子下载文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在框中创建了一个文件的直接链接:

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

上一个链接是浏览器网页界面,所以我用一个直接链接分享了:

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

但是,如果我用 wget 下载文件,我会收到垃圾.

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

如何使用 wget 下载文件?

How can I download the file with wget?

推荐答案

解决方案是添加 -L 选项以跟随 HTTP 重定向:

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

这篇关于如何使用wget从盒子下载文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆