Skip to Content
Python for Security and Networking - Third Edition
book

Python for Security and Networking - Third Edition

by José Manuel Ortega
June 2023
Intermediate to advanced
586 pages
12h 35m
English
Packt Publishing
Content preview from Python for Security and Networking - Third Edition

4

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 ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Mastering Python for Networking and Security - Second Edition

Mastering Python for Networking and Security - Second Edition

José Manuel Ortega
Python for Cybersecurity

Python for Cybersecurity

Howard E. Poston, III

Publisher Resources

ISBN: 9781837637553Supplemental Content