Sending additional requests with mitmproxy

I want to generate an arbitrary number of requests automatically when a certain URL is seen in the proxy.

For example… if “” is requested I want to send 9 additional requests for page2…page10 in the background.

What is the best way to send these requests within the functionality of mitmproxy? Ideally these requests would still be processed by the response controller handler (so it looks like they are coming from the browser and not generated by mitproxy itself).

Is this possible?


Hi @blark,

I think you’re looking for something like this: