aboutsummaryrefslogtreecommitdiffstats
path: root/mitmdump
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@nullcube.com>2011-03-09 13:15:31 +1300
committerAldo Cortesi <aldo@nullcube.com>2011-03-09 13:15:31 +1300
commit03f13453856e3af15dc3af81adcf3a80d1358da0 (patch)
treef4700518429e2264ee083034f2b91aa7425ce5e8 /mitmdump
parent592812467da5bfe8196f16dcfa6d348551c4febd (diff)
downloadmitmproxy-03f13453856e3af15dc3af81adcf3a80d1358da0.tar.gz
mitmproxy-03f13453856e3af15dc3af81adcf3a80d1358da0.tar.bz2
mitmproxy-03f13453856e3af15dc3af81adcf3a80d1358da0.zip
Add an --anticache option to mitmdump.
This removes all headers that might cause a server to return 304-not-modified. For now, all the new features are going into mitmdump - everything will be ported over to mitmproxy once I have the feature set locked down.
Diffstat (limited to 'mitmdump')
-rwxr-xr-xmitmdump6
1 files changed, 6 insertions, 0 deletions
diff --git a/mitmdump b/mitmdump
index 814f2af3..972c7666 100755
--- a/mitmdump
+++ b/mitmdump
@@ -57,6 +57,11 @@ if __name__ == '__main__':
help="Quiet."
)
parser.add_option(
+ "--anticache",
+ action="store_true", dest="anticache", default=False,
+ help="Strip out request headers that might cause the server to return 304-not-modified."
+ )
+ parser.add_option(
"--reqscript",
action="store", dest="request_script", default=None,
help="Script to run when a request is recieved."
@@ -131,6 +136,7 @@ if __name__ == '__main__':
client_replay = options.client_replay,
keepserving = options.keepserving,
stickycookie = stickycookie,
+ anticache = options.anticache
)
if args:
filt = " ".join(args)