From daa9653ebebe73e1056d6dae14b11b0842ecbc2a Mon Sep 17 00:00:00 2001 From: Aldo Cortesi Date: Fri, 11 Mar 2011 11:56:10 +1300 Subject: Add --norefresh to stop refreshing server playback to mitmdump. Also, make cookie parsing for refreshing more error-tolerant. --- mitmdump | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'mitmdump') 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) -- cgit v1.2.3