From 98a7aaca182ce6b879329bbaeb06efca284c6220 Mon Sep 17 00:00:00 2001 From: Aldo Cortesi Date: Fri, 5 Aug 2011 10:23:32 +1200 Subject: Documentation. --- README.mkd | 11 +++---- doc-src/02-docstyle.css | 9 ++++++ doc-src/anticache.html | 3 ++ doc-src/clientreplay.html | 9 ++++-- doc-src/index.html | 4 --- doc-src/index.py | 1 - doc-src/library.html | 2 +- doc-src/mitmdump.html | 44 +++++++++++++++++++++++++++ doc-src/mitmproxy.html | 60 +++++++++++++++++++++++++++++++------ doc-src/mitmproxy/encodings.html | 0 doc-src/mitmproxy/index.py | 6 ---- doc-src/mitmproxy/interception.html | 38 ----------------------- doc-src/scripts.html | 2 +- doc-src/serverreplay.html | 15 +++++----- doc-src/sticky.html | 22 ++++++++++---- examples/add_header.py | 8 +++++ examples/simple_script | 6 ---- examples/stickycookies | 35 ++++++++++++++++++++++ examples/stickycookies.py | 34 --------------------- 19 files changed, 188 insertions(+), 121 deletions(-) delete mode 100644 doc-src/mitmproxy/encodings.html delete mode 100644 doc-src/mitmproxy/index.py delete mode 100644 doc-src/mitmproxy/interception.html create mode 100644 examples/add_header.py delete mode 100755 examples/simple_script create mode 100755 examples/stickycookies delete mode 100644 examples/stickycookies.py diff --git a/README.mkd b/README.mkd index 764c5a36..e46ca9da 100644 --- a/README.mkd +++ b/README.mkd @@ -1,12 +1,13 @@ -__mitmproxy__ is an SSL-capable, intercepting HTTP proxy. It provides a console -interface that allows traffic flows to be inspected and edited on the fly. +__mitmproxy__ is an SSL-capable man-in-the-middle proxy for HTTP. It provides a +console interface that allows traffic flows to be inspected and edited on the +fly. __mitmdump__ is the command-line version of mitmproxy, with the same functionality but without the frills. Think tcpdump for HTTP. -Both tools are fully documentented in the commandline __--help__ flag, and, in -the case of __mitmproxy__, a built-in help page accessible through the __?__ +Both tools are fully documentented in the commandline _--help_ flag, and, in +the case of __mitmproxy__, a built-in help page accessible through the _?_ keyboard shortcut. @@ -37,7 +38,7 @@ Requirements ------------ * [Python](http://www.python.org) 2.6.x or 2.7.x. -* [openssl](http://www.openssl.org/). Installed by default on most systems. +* [openssl](http://www.openssl.org/) - installed by default on most systems. * [urwid](http://excess.org/urwid/) version 0.9.8 or newer. * The test suite uses the [pry](http://github.com/cortesi/pry) unit testing library. diff --git a/doc-src/02-docstyle.css b/doc-src/02-docstyle.css index 7a7f49a4..eee82c58 100644 --- a/doc-src/02-docstyle.css +++ b/doc-src/02-docstyle.css @@ -56,6 +56,13 @@ a { margin: 1em 0; } +/* Keyboard shortcuts */ +#bd em { + font-weight: bold; + color: #04B404; + font-style: normal; +} + #ft.doc { color: #aaa; border-top: 1px solid #aaa; @@ -111,3 +118,5 @@ li a { .highlight { font-size: 14px; } + + diff --git a/doc-src/anticache.html b/doc-src/anticache.html index a4d76e47..79f0683d 100644 --- a/doc-src/anticache.html +++ b/doc-src/anticache.html @@ -1,4 +1,7 @@ +- command-line: _--anticache_ +- mitmproxy shortcut: _o_, then _a_ + When the __anticache__ option is passed to mitmproxy, it removes headers (__if-none-match__ and __if-modified-since__) that might elicit a 304-not-modified response from the server. This is useful when you want to make diff --git a/doc-src/clientreplay.html b/doc-src/clientreplay.html index efc632f6..d4b1c3ff 100644 --- a/doc-src/clientreplay.html +++ b/doc-src/clientreplay.html @@ -1,11 +1,14 @@ +- command-line: _-c path_ +- mitmproxy shortcut: _c_ + Client-side replay does what it says on the tin: you provide a previously saved HTTP conversation, and mitmproxy replays the client requests one by one. Note that mitmproxy serializes the requests, waiting for a response from the server before starting the next request. This might differ from the recorded conversation, where requests may have been made concurrently. -You may want to use client-side replay in conjunction with the __anticache__ -option. This will modify requests to remove headers (e.g. if-modified-since) -that might cause a server to reply with a 304-not-modified. +You may want to use client-side replay in conjunction with the +[anticache](@!urlTo("anticache.html")!@) option. + diff --git a/doc-src/index.html b/doc-src/index.html index 61a033be..4638b091 100644 --- a/doc-src/index.html +++ b/doc-src/index.html @@ -2,10 +2,6 @@