Forum Discussion
sohailmahmood
Nimbostratus
Jul 15, 2019http::payload xml tag value removal
hi
i need an irule , how i can remove / replace http: payload content
for example .
from : <operID>ABC<\operID>
to : <operID><\operID>
BR
- Andrew-F5
Employee
If you specifically want to remove tags the most efficient means is likely an HTML profile:
Creating an HTML profile for tag removal
You create an HTML profile when you want the BIG-IP® system to act on certain types of HTML content.
- On the Main tab, click Local Traffic > Profiles > Content > HTML .
- Click the Create New Profile button.
- In the Profile Name field, type a name, such as my_html_profile.
- From the Parent Profile list, select /Common/html.
- On the left pane, click HTML Rules.
- On the Create New button, click the right arrow.
- Select Remove Tag.
- The Create New Remove Tag Rule box appears.
- In the Rule Name field, type a name, such as my_remove_img_tag_rule.
- Optionally, in the Description field, type a description of the rule, such as Removes the img tag with the src attribute.
- On the left pane, click Match Settings.
- In the Match Tag Name field, type the name of the tag that you want to remove from the HTML content.
- An example of a tag to specify is the HTML img tag.
- In the Match Attribute Name field, type the name of the attribute associated with the tag that you specified for removal.
- An example of an attribute to specify is the src attribute for the img tag.
- Click OK.
- In the Available Rules list, locate the HTML rule that you want to enable, and select the adjacent check box.
- Using the Move button, move the selected HTML rule to the Selected Rules list.
- Click OK.
- Andrew-F5
Employee
You could also use a stream profile within an iRule:
https://devcentral.f5.com/s/question/0D51T00006i7VPR/payload-manipulation-https-http
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects