In this section, we're going to take a look at why we work with mitmproxy, how to use the basic HTTP proxy feature in mitmproxy, and a brief introduction to mitmproxy inline scripts.
Introduction to mitmproxy
Why mitmproxy?
Mitmproxy is an interactive console program that allows traffic flows to be intercepted, inspected, modified, and replayed. After researching for this section, I decided that the easiest and most complete way to learn about HTTP proxies in Python is by using mitmproxy. Any other attempt is more complex and limited than mitmproxy.
Mitmproxy is developed in Python and allows users to extend it via their inline scripts. It supports SSL out of the box, unlike other alternatives out there that support only...