HTTP Programming and Web Authentication

This chapter introduces the urllib and requests modules for making requests and retrieving web resources. The third-party requests module is a very popular alternative to the urllib module; it has an elegant interface and a powerful feature set, and it is a great tool for streamlining HTTP workflows. Also, we cover HTTP authentication mechanisms and how we can manage them with the requests module. Finally, we cover how to implement OAuth clients and JWT for token generation in web applications with the requests-oauthlib and jwt modules.

This chapter will provide us with the foundation to become familiar with different alternatives within Python when we need to use a module that provides different functionality ...

Get Python for Security and Networking - Third Edition 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.