aboutsummaryrefslogtreecommitdiffstats
path: root/doc-src/mitmdump.html
diff options
context:
space:
mode:
Diffstat (limited to 'doc-src/mitmdump.html')
-rw-r--r--doc-src/mitmdump.html20
1 files changed, 15 insertions, 5 deletions
diff --git a/doc-src/mitmdump.html b/doc-src/mitmdump.html
index 4d0683ea..1ca5a020 100644
--- a/doc-src/mitmdump.html
+++ b/doc-src/mitmdump.html
@@ -8,28 +8,36 @@ documentation.
## Example: saving traffic
- mitmdump -w outfile
+<pre class="terminal">
+mitmdump -w outfile
+</pre>
Start up mitmdump in proxy mode, and write all traffic to __outfile__.
## Example: client replay
- mitmdump -nc outfile
+<pre class="terminal">
+mitmdump -nc outfile
+</pre>
Start mitmdump without binding to the proxy port (_-n_), then replay all
requests from outfile (_-c filename_). Flags combine in the obvious way, so
you can replay requests from one file, and write the resulting flows to
another:
- mitmdump -nc srcfile -w dstfile
+<pre class="terminal">
+mitmdump -nc srcfile -w dstfile
+</pre>
See the [Client-side Replay](@!urlTo("clientreplay.html")!@) section for more information.
## Example: running a script
- mitmdump -s examples/add_header.py
+<pre class="terminal">
+mitmdump -s examples/add_header.py
+</pre>
This runs the __add_header.py__ example script, which simply adds a new header
to all responses.
@@ -37,7 +45,9 @@ to all responses.
## Example: scripted data transformation
- mitmdump -ns examples/add_header.py -r srcfile -w dstfile
+<pre class="terminal">
+mitmdump -ns examples/add_header.py -r srcfile -w dstfile
+</pre>
This command loads flows from __srcfile__, transforms it according to the
specified script, then writes it back to __dstfile__.