Forum Discussion
FSC-IT_27241
Nimbostratus
Sep 25, 2008Stream Profile and iRules
When trying to replace part of a uri via a stream profile is it enough to simply fill out the source and target in the stream profile or do I have to have an irule to act upon the profile?
Same question only simpler: I put the string I want to match and the replacement string in a stream profile but nothing seems to be replaced.
Thanks,
Jer
- Hamish
Cirrocumulus
Adding the stream profile to the VS should be enough. However that will do the replacement on ALL content. Including binaries etc. You may wish to use an iRule instead and test for content type of text/html before enabling it. - hoolio
Cirrostratus
Not only will the stream profile be applied to all content types, it will also be applied to request payloads. I'd suggest always enabling a stream profile with an iRule so you can specify when you want to perform the replacement(s). You can check the STREAM::expression wiki page (Click here) for examples of this.
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