Skip to content

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)

LOGO

Modify Response Content Action Adding 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>

When TC ID NO is selected, a *Mask Query ready for use by TR7 is added.

LOGO

When Credit Card is selected, a RegEx is printed to the Mask Query ready to be used by TR7.

LOGO

- 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.

LOGO LOGO

- 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.

LOGO

- 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

Add button can be clicked to add the configured action.

Add & Repeat button can be clicked to add the configured action. New similar actions can also be added without losing the current configuration by clicking this button. The following alert is shown when the button is clicked.

LOGO

- Example of the Response Content Modify Action "Masking"

Before Adding the Modify Response Content (Masking) Action

LOGO

After Adding the Modify Response Content (Masking) Action

LOGO

Modify Response Content Form (Modify Type > Add HTML Code)

LOGO

Modify Response Content Action Adding 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

Add button can be clicked to add the configured action.

Add & Repeat button can be clicked to add the configured action. New similar actions can also be added without losing the current configuration by clicking this button. The following alert is shown when the button is clicked.

LOGO

Modify Response Content Form (Modify Type > Replace)

LOGO

Modify Response Content Action Adding 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.

- Form Buttons

Add button can be clicked to add the configured action.

Add & Repeat button can be clicked to add the configured action. New similar actions can also be added without losing the current configuration by clicking this button. The following alert is shown when the button is clicked.

LOGO