From d013f7ec8faab0ab4cc2645c6d1c40985538ddf7 Mon Sep 17 00:00:00 2001 From: Rodrigo Senra Date: Sat, 7 Jan 2017 19:58:30 -0500 Subject: [PATCH] Added note about server-side replay for sessions recorded in reverse-proxy mode --- docs/features/serverreplay.rst | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/docs/features/serverreplay.rst b/docs/features/serverreplay.rst index f545d4a53..a1e1cbd14 100644 --- a/docs/features/serverreplay.rst +++ b/docs/features/serverreplay.rst @@ -33,6 +33,19 @@ updated in a similar way. You can turn off response refreshing using the ``--norefresh`` argument, or using the :kbd:`o` options shortcut within :program:`mitmproxy`. + +Replaying a session recorded in Reverse-proxy Mode +-------------------------------------------------- + +If you have captured the session in reverse proxy mode, in order to replay it you +still have to specify the server URL, otherwise you may get the error: +'HTTP protocol error in client request: Invalid HTTP request form (expected authority or absolute...)'. + +During replay, when the client's requests match previously recorded requests, then the +respective recorded responses are simply replayed by mitmproxy. +Otherwise, the unmatched requests is forwarded to the upstream server. +If forwarding is not desired, you can use the --kill (-k) switch to prevent that. + ================== =========== command-line ``-S path`` mitmproxy shortcut :kbd:`R` then :kbd:`s`