diff options
author | Maximilian Hils <git@maximilianhils.com> | 2014-01-28 17:29:28 +0100 |
---|---|---|
committer | Maximilian Hils <git@maximilianhils.com> | 2014-01-28 17:29:28 +0100 |
commit | 1e3e0dd1271afda59ec244b64391b6579a998dce (patch) | |
tree | 5f1f617ccc8ea2b29650c10197407b1d3ecb7139 /doc-src/scripting/libmproxy.html | |
parent | 17f09aa0afe9695505b746c370e1c5b889c19058 (diff) | |
parent | 3aa78f9ff38471f84a471618e1a43ca02fc65b6a (diff) | |
download | mitmproxy-1e3e0dd1271afda59ec244b64391b6579a998dce.tar.gz mitmproxy-1e3e0dd1271afda59ec244b64391b6579a998dce.tar.bz2 mitmproxy-1e3e0dd1271afda59ec244b64391b6579a998dce.zip |
merge master
Diffstat (limited to 'doc-src/scripting/libmproxy.html')
-rw-r--r-- | doc-src/scripting/libmproxy.html | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/doc-src/scripting/libmproxy.html b/doc-src/scripting/libmproxy.html new file mode 100644 index 00000000..e2d2ff6a --- /dev/null +++ b/doc-src/scripting/libmproxy.html @@ -0,0 +1,12 @@ + +All of mitmproxy's basic functionality is exposed through the __libmproxy__ +library. The example below shows a simple implementation of the "sticky cookie" +functionality included in the interactive mitmproxy program. Traffic is +monitored for __cookie__ and __set-cookie__ headers, and requests are rewritten +to include a previously seen cookie if they don't already have one. In effect, +this lets you log in to a site using your browser, and then make subsequent +requests using a tool like __curl__, which will then seem to be part of the +authenticated session. + +$!example("examples/stickycookies")!$ + |