Modify Response Content
About
The Modify Response Content action is typically used to make changes such as modification and masking in the request body only at the response stage after a request is made to the vServices.
How to Add?
To add the Modify Response Content action from TR7 ASP web interface, "Traffic Manager > Traffic Manipulation > Actions > Add" steps are followed. At the current page Modify Response Content is selected as an Action Type and the following form is shown.
Applicable vServices
- HTTP
- L7 TCP
- Network
Interface
Modify Response Content Form (Modify Type > Mask)
- Action Name
Name for the action is entered.
- Action Type
Modify Response Content is selected.
- Query Type
Select when the value to be written in the Mask Query tab will be ReGex.
It is selected when the value to be written in the Mask Query tab will be a string.
- Built-in Mask Regexes>
- Testing the Written RegEx on the TR7 Web Interface
Selected/Written RegEx patterns can be tested on the TR7 web interface by clicking the icon on the far right of the Mask Query tab.
- Mask Query
The value to be searched in the content after the request to the vService, whether it will be RegEx or String, is written depending on the choice made in the Query Type. When ready-made RegEx patterns are used, they automatically come to the Mask Query tab.
- Case Insensitive
When the checkbox is selected Query parameter will be checked without regard to uppercase/lowercase letters. By default, it is unselected.
- Omitted Characters
Characters that should not be masked in the content according to the value searched in the Mask Query can be written consecutively.
- Masking Character
The masking character for content matching the value searched in the Mask Query is entered.
- Masking Tolerance
The number of characters that should not be masked from the right and left of the content matching the value searched in the Mask Query is entered.
- Min. Occurrences for Masking
The number of times content matching the value searched in the Mask Query should be masked is entered.
- Conditions
Condition(s) that will trigger the action is/are selected. For detailed information about conditions, click here.
- Form Buttons
- Example of the Response Content Modify Action "Masking"
Before Adding the Modify Response Content (Masking) Action
After Adding the Modify Response Content (Masking) Action
Modify Response Content Form (Modify Type > Add HTML Code)
- HTML Tag
HTML Content to be added is selected in cases where it is desired to be added into "html" tags.
HTML Content to be added is selected in cases where it is desired to be added into "head" tags.
HTML Content to be added is selected in cases where it is desired to be added into "body" tags.
HTML Content to be added is selected in cases where it is desired to be added into "title" tags.
- Tag Modify Type
Select when the code to be written in the HTML Content to Add should be added to the beginning of the selected tag in the Adding Area.
It is selected in cases where the code to be written in the HTML Content to Add tab is desired to be added to the end of the tag selected in the HTML Tag.
- HTML Content to Add
Enter the HTML content to be added.
- Conditions
Condition(s) that will trigger the action is/are selected. For detailed information about conditions, click here.
- Form Buttons
Modify Response Content Form (Modify Type > Replace)
- Query Type
Select when the value to be written in the Mask Query tab will be ReGex.
It is selected when the value to be written in the Search Query tab will be a string.
- Mask Query
The value to be searched in the content after the request to the vServices, whether it will be RegEx or String, is written.
- Case Insensitive
When the checkbox is selected Mask Query parameter will be checked without regard to uppercase/lowercase letters. By default, it is unselected.
- New Content
The new format of content matching the value searched in the Mask Query is written.
- Conditions
Condition(s) that will trigger the action is/are selected. For detailed information about conditions, click here.