Forum Discussion
Ken_Chan_95250
Nimbostratus
Feb 17, 2006change of HTTP response content
If it is possible to change the HTTP content with irule ?
i.e. if the return html file contains some link like http://domain1/image1.jpg, can i change it to http://domain2/image2.jpg ?
if ye...
Feb 17, 2006
Option 1: use the stream profile (if available to you). In there you specify a search and replace string and it'll take care of everything for you without an iRule.
Option 2: Use the builtin TCL regsub command to perform pattern substitution and then use the "HTTP::payload replace" command in the HTTP_RESPONSE event to replace the existing payload with your modified version.
Search the forums and you should find examples of each of these options.
-Joe
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