diff options
author | Maximilian Hils <git@maximilianhils.com> | 2014-05-15 14:37:05 +0200 |
---|---|---|
committer | Maximilian Hils <git@maximilianhils.com> | 2014-05-15 14:37:05 +0200 |
commit | a17a53269d23d0bde74c340c9df4b1983b70144b (patch) | |
tree | 205301aa271cea8af029b608c1b830289bb67718 /examples/read_dumpfile.py | |
parent | 9cba4f8d397d212f60ffc52f02dabf97b126e540 (diff) | |
download | mitmproxy-a17a53269d23d0bde74c340c9df4b1983b70144b.tar.gz mitmproxy-a17a53269d23d0bde74c340c9df4b1983b70144b.tar.bz2 mitmproxy-a17a53269d23d0bde74c340c9df4b1983b70144b.zip |
fix #253
Diffstat (limited to 'examples/read_dumpfile.py')
-rw-r--r-- | examples/read_dumpfile.py | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/examples/read_dumpfile.py b/examples/read_dumpfile.py deleted file mode 100644 index 547f3c17..00000000 --- a/examples/read_dumpfile.py +++ /dev/null @@ -1,17 +0,0 @@ -#!/usr/bin/env python -# -# Simple script showing how to read a mitmproxy dump file -# - -from libmproxy import flow -import json, sys - -with open("logfile", "rb") as f: - freader = flow.FlowReader(f) - try: - for i in freader.stream(): - print i.request.host - json.dump(i._get_state(), sys.stdout, indent=4) - print "" - except flow.FlowReadError, v: - print "Flow file corrupted. Stopped loading."
\ No newline at end of file |