Summary
In this chapter, we looked at the http.client
, urllib.request
, requests
, and httpx
modules for building HTTP clients. The requests
module is a very useful tool if we want to consume API endpoints from our Python application. In the last section, we reviewed the main authentication mechanisms and how to implement them with the requests
module.
Everything learned throughout this chapter will be useful for developers like you when it comes to having a variety of alternatives when you need to use a module that makes it easier for us to make requests to a web service or REST API.
In the next chapter, we will explore programming packages in Python to extract public information from servers with services such as Shodan, Binary Edge, and Hunter.io. Also, we will review some techniques for banner grabbing and obtaining information from DNS servers.