Digest Authentication

Another very popular form of HTTP Authentication is Digest Authentication, and Requests supports this out of the box as well:

  1. >>> from requests.auth import HTTPDigestAuth
  2. >>> url = 'http://httpbin.org/digest-auth/auth/user/pass'
  3. >>> requests.get(url, auth=HTTPDigestAuth('user', 'pass'))
  4. <Response [200]>