Edit on GitHub

Replay Requests

Another powerful feature of mitmproxy is replaying previous flows. Two types of replays are supported:

In this tutorial we focus on the more common use case of client-side replays. See the docs for more info on server-side replay.

Video Content

  1. Welcome to the mitmproxy tutorial. In this lesson we cover replaying requests.
00:00
  1. Let’s generate a request that we can replay. We use curl in a separate terminal.
00:15
  1. We now want to replay the this request.
00:43
  1. Put the focus (>>) on the request that should be replayed. This is already the case in our example.
00:47
  1. Press r to replay the request.
00:56
  1. Note that no new rows are added for replayed flows, but the existing row is updated.
00:59
  1. Every time you press r, mitmproxy sends this request to the server again and updates the flow.
01:06
  1. You can also modify a flow before replaying it.
01:20
  1. It works as shown in the previous lesson, by pressing e.
01:25
  1. Congratulations! You have completed all lessons of the mitmproxy tutorial.
01:30

You are almost done with this tutorial. In the last step you find more mitmproxy-related resources to discover.