简体   繁体   中英

How to prompt for password with pycurl? (equivalent to curl -u)

是否有相当于curl -u username的 pycurl 可以让 Python 提示我输入密码?

pycurl does not have a feature where it will prompt for a password.

However, your program can issue the request without credentials and if the response is 401 perform the password prompt using facility such as the getpass standard library module.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM