diff options
author | Aldo Cortesi <aldo@nullcube.com> | 2011-01-31 13:26:56 +1300 |
---|---|---|
committer | Aldo Cortesi <aldo@nullcube.com> | 2011-01-31 13:26:56 +1300 |
commit | b886f808beaba097066a1b82fe560b1e70099df0 (patch) | |
tree | e1ca2132627d0e24d29a2223403a67e36d40c72a /test/scripts/err_return | |
parent | edb8228dd27c3050f45b536b761eab46672f8eb3 (diff) | |
download | mitmproxy-b886f808beaba097066a1b82fe560b1e70099df0.tar.gz mitmproxy-b886f808beaba097066a1b82fe560b1e70099df0.tar.bz2 mitmproxy-b886f808beaba097066a1b82fe560b1e70099df0.zip |
Add an external script API.
External scripts can read a flow, modify it, and then return it to mitmproxy
using a simple API.
The "|" keyboard shortcut within mitmproxy prompts the user for a script.
Diffstat (limited to 'test/scripts/err_return')
-rwxr-xr-x | test/scripts/err_return | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/scripts/err_return b/test/scripts/err_return new file mode 100755 index 00000000..a45926b5 --- /dev/null +++ b/test/scripts/err_return @@ -0,0 +1,5 @@ +#!/usr/bin/env python +import sys +sys.path.insert(0, "..") +sys.exit(1) + |