且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

带有用户名和密码的 HTTPS 的正确 wget 命令语法是什么?

更新时间:2021-09-09 23:45:25

通过指定选项 --user 和 --ask-password wget 将要求提供凭据.下面是一个例子.根据您的需要更改用户名和下载链接.

By specifying the option --user and --ask-password wget will ask for the credentials. Below is an example. Change the username and download link to your needs.

wget --user=username --ask-password https://xyz.com/changelog-6.40.txt