wget 下载需要用户名和密码访问的网站资源

使用wget自带的--http-user=username  --http-passwd=password  

username 和 password 分别代表用户名和密码。

注意:

"--http-user"前面是带有两个横线的。

顺便记录一下wget的断点续传功能(自带的断点续传)

只需要在加上参数-c就可以了

#wget -c http://www.baidu.com/file.tar.gz

增加参数-t 表示重试次数,-t 5 就代表需要重试5次

#wget -c -t 5 http://www.baidu.com/file.tar.gz

原文:https://blog.csdn.net/qq_22946541/article/details/73201484

原文地址:https://www.cnblogs.com/sucretan2010/p/13965218.html