0

Is there a pycurl equivalent to curl -u username where I can get Python to prompt for my password?

Jason S
  • 184,598
  • 164
  • 608
  • 970

1 Answers1

0

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.

D. SM
  • 13,584
  • 3
  • 12
  • 21