Forum Discussion
Kirk_Bauer_1018
Nimbostratus
Mar 31, 2007Can't get HTTP payload modification iRule to work
I have tried this rule, largely pieced together from sample code on this site:
when HTTP_REQUEST {
set uri [HTTP::uri]
}
when HTTP_RESPONSE {
log local0. "$uri:...
hoolio
Cirrostratus
Sep 04, 2007It would be easier and more efficient to use a stream profile to replace the strings within the data rather than trying to buffer the response data and perform regex operations against it.
Just make sure to set Response Chunking to Re-chunk on the HTTP profile for the virtual server.
Click here
If you want to replace multiple strings, you can use the following format:
Name: my_stream
Source:
Target: @123@456@@abc@xyz@
Leave the source field blank. 123 will be replaced with 456. abc will be replaced with xyz.
[edit: nevermind... it works with a space between the string pairs or without]
Aaron
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