January 2019
Beginner to intermediate
776 pages
19h 58m
English
Let us try to pretend to log in to a popular code-sharing website, https://bitbucket.org/. We would like to submit the login information on the login page, https://bitbucket.org/account/signin/?next=/. The following screenshot shows the login page:

So, we note down the form element IDs and decide which fake values should be submitted. We access this page the first time, and the next time, we access the home page to observe what cookies have been set up.
Listing 4.3 explains extracting cookie information as follows:
#!/usr/bin/env python # Python Network Programming Cookbook -- Chapter - 4 # This program ...
Read now
Unlock full access