Forum Discussion
smp_86112
Cirrostratus
Feb 08, 2008STREAM::replace
I'm trying to write a simple iRule using a STREAM profile on an LTM running 9.1.2. According to the iRules wiki, the STREAM::replace was introduced in 9.0.0. However this simple iRule generates the er...
smp_86112
Cirrostratus
Feb 11, 2008What I'm trying to do is replace all occurrences of the string "about:blank" with a different string in any HTTP_RESPONSE_DATA if { HTTP::header "Content-Type"] contains "application/x-javascript"}. My LTMs are running 9.1.2, and it appeared the only STREAM command available to me was STREAM::replace. I was hoping I could apply a blank stream profile to the VIP, then use the STREAM::replace command to accomplish the replacement. I misunderstood the explanation of the command.
Based on your explanation of the stream profile, plus the requirement of only applying the stream profile under certain conditions, it appears must either upgrade or to try this using HTTP::payload. I think we've tried HTTP::payload in the past with pretty horrible consequences, so I'm a hesitant about using it since I'm not yet confident in my iRules expertise. But since an upgrade is not possible in the time constraint I'm under, then I guess that's my only option. I'm now pouring over the forums to find a good example.
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