Export curl from mitmproxy
·Jul 20, 2019·
1 min read
I've been using mitmproxy pretty much non-stop for the past several months. My current daily workflow consists of a proxy and two reverse proxies.
From anywhere within mitmproxy, entering
? will display context-sensitive help. For
the most part, the documentation is great. The one thing I was not able to find
was how to export a request as a curl request, which are useful when trying to share
requests with team mates.
After Googling it for a bit, I finally came across how to do it:
wto enter export mode
export.clip curl @focusto copy curl request to clipboard
It works, but I'm still going to reference my notes I need to remember the
exact syntax. Luckily, mitmproxy has key binding
support. So, by adding the following to
I now have a shortcut to copy a curl request from mitmproxy.
- key: c cmd: export.clip curl