mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-24 00:31:33 +00:00
f47d89ff4e
This reverts commit 8f88fcedd6
.
37 lines
832 B
HTML
37 lines
832 B
HTML
|
|
Many commands in __mitmproxy__ and __mitmdump__ take a filter expression.
|
|
Filter expressions consist of the following operators:
|
|
|
|
<table class="table">
|
|
<tbody>
|
|
<!--(for i in filt_help)-->
|
|
<tr>
|
|
<td class="filt_cmd">@!i[0]!@</td>
|
|
<td class="filt_help">@!i[1]!@</td>
|
|
</tr>
|
|
<!--(end)-->
|
|
</tbody>
|
|
</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":
|
|
|
|
~q ~b test
|
|
|
|
Anything but requests with a text/html content type:
|
|
|
|
!(~q & ~t \"text/html\")
|
|
|