diff options
author | Shadab Zafar <dufferzafar0@gmail.com> | 2016-01-13 16:37:28 +0530 |
---|---|---|
committer | Shadab Zafar <dufferzafar0@gmail.com> | 2016-01-13 16:40:05 +0530 |
commit | 34ec2d1370d0066c47f37819b543ec8465332c12 (patch) | |
tree | a1d070ee372e95e0dcf6d38c93d5a3324751383f /libmproxy/console/flowview.py | |
parent | 1079e00641f0a7d0f1bb0e82d9f5e7830683a1a1 (diff) | |
download | mitmproxy-34ec2d1370d0066c47f37819b543ec8465332c12.tar.gz mitmproxy-34ec2d1370d0066c47f37819b543ec8465332c12.tar.bz2 mitmproxy-34ec2d1370d0066c47f37819b543ec8465332c12.zip |
Export/Copy request as python code
Press E followed by p to copy code to clipboard.
The code uses the python requests module.
Only GET methods are currently supported, but can easily be extended
to POST etc.
Diffstat (limited to 'libmproxy/console/flowview.py')
-rw-r--r-- | libmproxy/console/flowview.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libmproxy/console/flowview.py b/libmproxy/console/flowview.py index 95d52c98..3a745262 100644 --- a/libmproxy/console/flowview.py +++ b/libmproxy/console/flowview.py @@ -27,7 +27,7 @@ def _mkhelp(): ("b", "save request/response body"), ("D", "duplicate flow"), ("d", "delete flow"), - ("E", "export"), + ("E", "export"), ("e", "edit request/response"), ("f", "load full body data"), ("m", "change body display mode for this entity"), @@ -581,6 +581,7 @@ class FlowView(tabs.Tabs): prompt = "Export", keys = ( ("as curl command", "c"), + ("as python code", "p"), ), callback = common.export_prompt, args = (self.flow,) |