使用cURL和用户名和密码?

请参考链接:

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

猜你喜欢

转载自www.cnblogs.com/faberbeta/p/linux-shell021.html