Authentication with the requests module

With the requests module, we can connect with servers that support Basic and Digest authentication. With basic authentication, the information about the user and password is sent in base64 format, and with digest the information about the user and password is sent in hash with the md5 or sha1 algorithm.

Get Mastering Python for Networking and Security now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.