Description
This plugin is a stream editor for web requests and responses. Three configurable parameters exist:
- priority
- expressions
- fixContentLen
Stream edition expressions are strings that tell the sed plugin what to change. Sed plugin uses regular expressions, some examples:
- qh/User/NotLuser/
This will make sed search in the the re[q]uest [h]eader for the string User and
replace it with NotLuser.
- sb/[fF]orm/form
This will make sed search in the re[s]ponse [b]ody for the strings form or Form
and replace it with form. Multiple expressions can be specified separated by commas.
Plugin type
Options
Name | Type | Default Value | Description | Help |
expressions | list | [] | Stream edition expressions | Stream edition expressions are strings that tell the sed plugin what to change. Sed plugin uses regular expressions, some examples: – qh/User/NotLuser/ ; This will make sed search in the the re[q]uest [h]eader for the string User and replace it with NotLuser. – sb/[fF]orm/form ; This will make sed search in the re[s]ponse [b]ody for the strings form or Form and replace it with form. Multiple expressions can be specified separated by commas. |
fixContentLen | boolean | True | Fix the content length header after mangling | No detailed help available |
priority | integer | 20 | Plugin execution priority | Mangle plugins are ordered using the priority parameter |
Source
For more information about this plugin and the associated tests, there’s always the source code to understand exactly what’s under the hood:
Plugin source code
Unittest source code
Dependencies
This plugin has no dependencies.