curl 和 wget 添加 basic auth 信息

创建日期: 2024-01-19 19:30 | 作者: 风波 | 浏览次数: 15 | 分类: shell

1. wget 添加 basic auth 信息

wget --http-user=Usernane --http-passwd=Password 'http://www.example.com/file.tar'

2. curl 添加 basic auth 信息

curl --user Username:Password 'http://www.example.com/file.tar'

3. mwget 添加 basic auth

mwget -n 2 'http://username:password@www.example/file.tar'

认证信息直接写在了 url 中

15 浏览
10 爬虫
0 评论