aboutsummaryrefslogtreecommitdiffstats
path: root/docs/features/serverreplay.rst
diff options
context:
space:
mode:
Diffstat (limited to 'docs/features/serverreplay.rst')
-rw-r--r--docs/features/serverreplay.rst13
1 files changed, 13 insertions, 0 deletions
diff --git a/docs/features/serverreplay.rst b/docs/features/serverreplay.rst
index f545d4a5..a1e1cbd1 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`