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

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

注意:

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

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

 

 

 

 

顺便记录一下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

相关文章:

  • 2021-08-18
  • 2022-12-23
  • 2021-12-05
  • 2021-08-02
  • 2022-12-23
  • 2021-07-25
猜你喜欢
  • 2022-12-23
  • 2021-11-01
  • 2021-12-18
  • 2021-08-25
  • 2022-12-23
  • 2021-07-24
  • 2021-11-27
相关资源
相似解决方案