aboutsummaryrefslogtreecommitdiffstats
path: root/mitmdump
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@nullcube.com>2011-03-11 11:56:10 +1300
committerAldo Cortesi <aldo@nullcube.com>2011-03-11 11:56:10 +1300
commitdaa9653ebebe73e1056d6dae14b11b0842ecbc2a (patch)
tree570350fc9807ea7c58a77f1bd3f31e950b86cc33 /mitmdump
parente99b1d1949c6a140895f8f10c4863ec41528cccf (diff)
downloadmitmproxy-daa9653ebebe73e1056d6dae14b11b0842ecbc2a.tar.gz
mitmproxy-daa9653ebebe73e1056d6dae14b11b0842ecbc2a.tar.bz2
mitmproxy-daa9653ebebe73e1056d6dae14b11b0842ecbc2a.zip
Add --norefresh to stop refreshing server playback to mitmdump.
Also, make cookie parsing for refreshing more error-tolerant.
Diffstat (limited to 'mitmdump')
-rwxr-xr-xmitmdump9
1 files changed, 8 insertions, 1 deletions
diff --git a/mitmdump b/mitmdump
index 972c7666..881f99c2 100755
--- a/mitmdump
+++ b/mitmdump
@@ -107,6 +107,12 @@ if __name__ == '__main__':
help="Request headers to be considered during replay. "
"Can be passed multiple times."
)
+ group.add_option(
+ "--norefresh",
+ action="store_true", dest="norefresh", default=False,
+ help= "Disable response refresh, "
+ "which updates times in cookies and headers for replayed responses."
+ )
parser.add_option_group(group)
proxy.certificate_option_group(parser)
@@ -136,7 +142,8 @@ if __name__ == '__main__':
client_replay = options.client_replay,
keepserving = options.keepserving,
stickycookie = stickycookie,
- anticache = options.anticache
+ anticache = options.anticache,
+ refresh_server_playback = not options.norefresh,
)
if args:
filt = " ".join(args)