aboutsummaryrefslogtreecommitdiffstats
path: root/doc-src
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@nullcube.com>2013-03-17 10:50:47 +1300
committerAldo Cortesi <aldo@nullcube.com>2013-03-17 10:50:47 +1300
commit87f76bb62bba91c5397199e6044363aa1f5bb848 (patch)
treeb010e22292077210e2e0c891fcf722f8e7a65511 /doc-src
parent55ff7e8387d3ddbde8988261cbc6619318fbaed2 (diff)
downloadmitmproxy-87f76bb62bba91c5397199e6044363aa1f5bb848.tar.gz
mitmproxy-87f76bb62bba91c5397199e6044363aa1f5bb848.tar.bz2
mitmproxy-87f76bb62bba91c5397199e6044363aa1f5bb848.zip
Add filter to mitmdump examples.
Diffstat (limited to 'doc-src')
-rw-r--r--doc-src/mitmdump.html22
1 files changed, 18 insertions, 4 deletions
diff --git a/doc-src/mitmdump.html b/doc-src/mitmdump.html
index 6346da42..792f9c52 100644
--- a/doc-src/mitmdump.html
+++ b/doc-src/mitmdump.html
@@ -6,7 +6,10 @@ documentation.
-## Example: saving traffic
+# Examples
+
+
+## Saving traffic
<pre class="terminal">
> mitmdump -w outfile
@@ -15,7 +18,18 @@ documentation.
Start up mitmdump in proxy mode, and write all traffic to __outfile__.
-## Example: client replay
+## Filtering saved traffic
+
+<pre class="terminal">
+> mitmdump -nr infile -w outfile "~m post"
+</pre>
+
+Start mitmdump without binding to the proxy port (_-n_), read all flows from
+infile, apply the specified filter expression (only match POSTs), and write to
+outfile.
+
+
+## Client replay
<pre class="terminal">
> mitmdump -nc outfile
@@ -33,7 +47,7 @@ another:
See the [Client-side Replay](@!urlTo("clientreplay.html")!@) section for more information.
-## Example: running a script
+## Running a script
<pre class="terminal">
> mitmdump -s examples/add_header.py
@@ -43,7 +57,7 @@ This runs the __add_header.py__ example script, which simply adds a new header
to all responses.
-## Example: scripted data transformation
+## Scripted data transformation
<pre class="terminal">
> mitmdump -ns examples/add_header.py -r srcfile -w dstfile