diff options
author | Aldo Cortesi <aldo@nullcube.com> | 2011-02-18 12:40:45 +1300 |
---|---|---|
committer | Aldo Cortesi <aldo@nullcube.com> | 2011-02-18 12:40:45 +1300 |
commit | cd4eea39348fc9d59d4f0cc3f71384f7c1c2b2e2 (patch) | |
tree | ae09d5a06c1d7f2ae6314fd5f96d6b506f454507 /examples/simple_script | |
parent | 7769e5a898150451a52b5683c519ee04802310b8 (diff) | |
download | mitmproxy-cd4eea39348fc9d59d4f0cc3f71384f7c1c2b2e2.tar.gz mitmproxy-cd4eea39348fc9d59d4f0cc3f71384f7c1c2b2e2.tar.bz2 mitmproxy-cd4eea39348fc9d59d4f0cc3f71384f7c1c2b2e2.zip |
First pass of script hooks for mitmdump.
Also stub out docs, improve mitmdump error handling.
Diffstat (limited to 'examples/simple_script')
-rwxr-xr-x | examples/simple_script | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/examples/simple_script b/examples/simple_script new file mode 100755 index 00000000..aed937ec --- /dev/null +++ b/examples/simple_script @@ -0,0 +1,6 @@ +#!/usr/bin/env python +from libmproxy import script + +f = script.load_flow() +f.request.headers["newheader"] = ["foo"] +script.return_flow(f) |