replay_flow
Replay a request with modified method, headers, or body, and view the response as a new flow in mitmweb UI. Existing flows remain unchanged.
Instructions
Replay a request, optionally rewriting method, headers or body (like Burp Repeater).
The request is sent with curl_cffi using browser TLS fingerprint impersonation, and it goes through your own mitmproxy, so the result appears as a new flow in your mitmweb UI where you can see it. Existing flows are never modified.
headers overrides or adds headers, e.g. {"Authorization": "Bearer NEW"}; omit to reuse the original. body replaces the request body (dicts/lists are serialised to JSON). impersonate accepts chrome / chrome131 / chrome142 / safari / firefox / edge.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | ||
| method | No | ||
| flow_id | Yes | ||
| headers | No | ||
| timeout | No | ||
| body_max | No | ||
| impersonate | No | chrome |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |