diff options
author | Aldo Cortesi <aldo@nullcube.com> | 2011-03-18 09:04:49 +1300 |
---|---|---|
committer | Aldo Cortesi <aldo@nullcube.com> | 2011-03-18 09:04:49 +1300 |
commit | e983253ecc85aaa8a51ae562dc1805132d339781 (patch) | |
tree | 5f360ca325d643f4496373ca929bc9b40a520a25 /doc-src/filters.html | |
parent | 2af6dcf6f7c64f2a14a26c11975d103ba5d39326 (diff) | |
download | mitmproxy-e983253ecc85aaa8a51ae562dc1805132d339781.tar.gz mitmproxy-e983253ecc85aaa8a51ae562dc1805132d339781.tar.bz2 mitmproxy-e983253ecc85aaa8a51ae562dc1805132d339781.zip |
Docs, minor cert tweaks.
Diffstat (limited to 'doc-src/filters.html')
-rw-r--r-- | doc-src/filters.html | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/doc-src/filters.html b/doc-src/filters.html new file mode 100644 index 00000000..b71207fc --- /dev/null +++ b/doc-src/filters.html @@ -0,0 +1,34 @@ + +Many commands in __mitmproxy__ and __mitmdump__ take a filter expression. +Filter expressions consist of the following operators: + +<table> + <!--(for i in filt_help)--> + <tr> + <td class="filt_cmd">@!i[0]!@</td> + <td class="filt_help">@!i[1]!@</td> + </tr> + <!--(end)--> +</table> + +- Regexes are Python-style +- Regexes can be specified as quoted strings +- Header matching (~h, ~hq, ~hs) is against a string of the form "name: value". +- Strings with no operators are matched against the request URL. +- The default binary operator is &. + +Examples +======== + +Url containing "google.com": + + google\.com + +Requests whose body contains the string "test": + + ~r ~b test + +Anything but requests with a text/html content type: + + !(~r & ~t \"text/html\") + |