aboutsummaryrefslogtreecommitdiffstats
path: root/notes
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@nullcube.com>2012-04-28 12:42:03 +1200
committerAldo Cortesi <aldo@nullcube.com>2012-04-28 12:42:03 +1200
commitb4105be21e967f79d819749c44eff6ed4311f65d (patch)
tree723857cc38b59c5ebd35ab6c5b32d72e3a05c9a4 /notes
downloadmitmproxy-b4105be21e967f79d819749c44eff6ed4311f65d.tar.gz
mitmproxy-b4105be21e967f79d819749c44eff6ed4311f65d.tar.bz2
mitmproxy-b4105be21e967f79d819749c44eff6ed4311f65d.zip
Initial checkin.
Diffstat (limited to 'notes')
-rw-r--r--notes102
1 files changed, 102 insertions, 0 deletions
diff --git a/notes b/notes
new file mode 100644
index 00000000..0513cb42
--- /dev/null
+++ b/notes
@@ -0,0 +1,102 @@
+
+Value Specifiers:
+
+ !500k - 500k of random data
+ !500k:utf8 - 500k of utf8. Other specifiers: utf8,alphanum,alpha,printable
+ "foo" - literal
+ foo - literal
+ <path - load from path under data directory
+ <"path literal" - load from path under data directory
+
+
+Response:
+
+ code:[comma-separated features]
+
+
+Specifying a response:
+ Code 200:
+ code:msg
+ 200:VALUE
+
+ Headers:
+ h:VALUE:VALUE
+
+ Body:
+ b:VALUE
+
+ Pauses:
+ pb:5
+ pb:forever
+
+ Pause before sending data:
+
+ pb:5
+
+ Pause after sending data, before hanging up:
+
+ pa:5
+
+ Pause after sending a random amoutn of data:
+
+ pr:5
+
+
+ Disconnect:
+
+ Before sending data:
+
+ db
+
+ Randomly:
+
+ dr
+
+
+Shortcuts:
+
+ Redirects:
+ code:msg>destination
+ code>destination
+
+ 301:VALUE>VALUE
+ 301>http://foo.bar
+
+
+ Content-type:
+
+ t:content-type
+
+
+Examples:
+ 200,b:500k
+
+ 404,p:5s,b:1k:printable
+
+ 200,t:text/json,p:5s,b:1k
+
+ 200,b:1k,xr
+
+
+
+Sequences:
+
+ 200 * 2 | !forever
+
+ 200 | 404 | 200,b:500g
+
+
+
+Anchors:
+
+ Passed on command-line?
+ --anchor /foo/bar 200:!/foo
+
+
+
+Built-in help
+
+ /help
+
+ /explain/expression
+