From 87f76bb62bba91c5397199e6044363aa1f5bb848 Mon Sep 17 00:00:00 2001 From: Aldo Cortesi Date: Sun, 17 Mar 2013 10:50:47 +1300 Subject: [PATCH] Add filter to mitmdump examples. --- doc-src/mitmdump.html | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/doc-src/mitmdump.html b/doc-src/mitmdump.html index 6346da425..792f9c52f 100644 --- a/doc-src/mitmdump.html +++ b/doc-src/mitmdump.html @@ -6,7 +6,10 @@ documentation. -## Example: saving traffic +# Examples + + +## Saving traffic
 > 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
+
+
+> mitmdump -nr infile -w outfile "~m post"
+
+ +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
 > 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
 
 
 > 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
 
 
 > mitmdump -ns examples/add_header.py -r srcfile -w dstfile