wget downloads website resources that require username and password access

888u

Last update at :2024-05-16,Edit by888u

wget can also download files with passwords.

wget -c --http-user=username --http-passwd=password url
  • username represents username
  • password represents password.

Note:

"–http-user" is preceded by two horizontal lines.

By the way, record the breakpoint resume function of wget (built-in breakpoint resume)

Just add the parameter -c

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

Add parameter -t to indicate the number of retries, -t 5 means retrying 5 times

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

Original text: https://blog.csdn.net/qq_22946541/article/details/73201484

Recommended site search: domain name registration center, domain name registration center, domain name error correction system, game high defense server, German server, cloud virtual host 1g American virtual host, Guangzhou host rental, monthly payment space, forum host,

wget downloads website resources that require username and password access

All copyrights belong to 888u unless special state
取消
微信二维码
微信二维码
支付宝二维码