diff options
author | Aldo Cortesi <aldo@nullcube.com> | 2011-03-19 12:32:44 +1300 |
---|---|---|
committer | Aldo Cortesi <aldo@nullcube.com> | 2011-03-19 12:32:44 +1300 |
commit | 6d4bb1faeb19d64b294890494a7539f654145849 (patch) | |
tree | 410c6f8f475c91535acc2697d665699bac20f5d8 /doc-src/interception.html | |
parent | 3120b5ce151668e34a83b60c8c7575c252c7ee28 (diff) | |
download | mitmproxy-6d4bb1faeb19d64b294890494a7539f654145849.tar.gz mitmproxy-6d4bb1faeb19d64b294890494a7539f654145849.tar.bz2 mitmproxy-6d4bb1faeb19d64b294890494a7539f654145849.zip |
Docs.
Add screenshots and an explanation of interception.
Diffstat (limited to 'doc-src/interception.html')
-rw-r--r-- | doc-src/interception.html | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/doc-src/interception.html b/doc-src/interception.html new file mode 100644 index 00000000..cf5b7439 --- /dev/null +++ b/doc-src/interception.html @@ -0,0 +1,38 @@ + +__mitmproxy__'s interception functionality lets you pause an HTTP request or +response, inspect and modify it, and then accept it to send it on to the server +or client. Because this is an interactive function, it's only present in +__mitmproxy__, not in __mitmdump__. + + +### 1: Set an interception pattern + +<img src="@!urlTo('intercept-filt.png')!@"/> + +We press __i__ to set an interception pattern. In this case, the __~q__ filter +pattern tells __mitmproxy__ to intercept all requests. For complete filter +syntax, see the [Filter expressions](@!urlTo("filters.html")!@) section of this +document, or the built-in help function in __mitmproxy__. + +### 2: Intercepted conenctions are indicated with a red exclamation mark: + +<img src="@!urlTo('intercept-mid.png')!@"/> + +### 3: You can now view and modify the request: + +<img src="@!urlTo('intercept-options.png')!@"/> + +In this case, we viewd the request by selecting it, pressed __e__ for "edit" +and __m__ for "method" to change the HTTP request method. + +### 4: Accept the intercept to continue + +<img src="@!urlTo('intercept-result.png')!@"/> + +Finally, we press __a__ to accept the modified request, which is then sent on +to the server. In this case, we changed the request from an HTTP GET to to +OPTIONS, and Google's server has responded with a 405 "Method not allowed". + + + + |