请参考链接:
https://www.cnblogs.com/seasonzone/p/7527218.html
curl -u USERNAME http://server.example
然后,Curl会询问您的密码,密码将不会显示在屏幕上(或者您需要复制/粘贴该命令)。
curl -u user:$(cat .password-file) http://example-domain.tld
请参考链接:
https://www.cnblogs.com/seasonzone/p/7527218.html
curl -u USERNAME http://server.example
然后,Curl会询问您的密码,密码将不会显示在屏幕上(或者您需要复制/粘贴该命令)。
curl -u user:$(cat .password-file) http://example-domain.tld