aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMaximilian Hils <git@maximilianhils.com>2017-01-10 10:57:55 +0100
committerGitHub <noreply@github.com>2017-01-10 10:57:55 +0100
commit9c133abc7902423f74f74419f771f5d98ac1bcb0 (patch)
tree0c077cbe5d61f4e4aa75325ac59d659d8fc19c7f
parent88f3459c7d7fc44bf0e247cf7f018f8c53431e8d (diff)
parentd013f7ec8faab0ab4cc2645c6d1c40985538ddf7 (diff)
downloadmitmproxy-9c133abc7902423f74f74419f771f5d98ac1bcb0.tar.gz
mitmproxy-9c133abc7902423f74f74419f771f5d98ac1bcb0.tar.bz2
mitmproxy-9c133abc7902423f74f74419f771f5d98ac1bcb0.zip
Merge pull request #1920 from rodsenra/master
Added note about server-side replay for sessions recorded in reverse-proxy mode
-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`