Learning Python Networking - Second Edition
by José Manuel Ortega, Dr. M. O. Faruque Sarker, Sam Washington
Summary
In this chapter, we learned principles of the HTTP . We saw how to perform numerous fundamental tasks with the urllib standard library and the third-party Requests packages.
For each library, we learned about the structure of HTTP messages, HTTP status codes, the different headers that we may encounter in requests and responses, and how to interpret and use them to customize our requests. We also covered how to handle cookies and how to submit data to websites in the manner of submitting a form on a web page, and how to extract the parameters that we need from a page's source code.
In the next chapter, we'll be employing what we've learned here to carry out detailed interactions with different web services, query APIs for data, and ...
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.
Read now
Unlock full access