Forum Discussion
Moritz_Krinke_6
Nimbostratus
Jul 10, 2009Payload Manipulation https / http
Hello,
i've got a ssl cert installed on a virtual server, traffic goes to the pool members unencrypted.
im trying to modify the payload of the answer, doing a simple repl...
hoolio
Cirrostratus
Jul 10, 2009Hi Moritz,
I'd suggest using a stream profile and STREAM::expression based iRule to do this instead of trying to buffer the payload with HTTP::collect / HTTP::payload.
Here is an example:
http://devcentral.f5.com/wiki/default.aspx/iRules/stream__expression
when HTTP_RESPONSE {
Disable the stream filter by default
STREAM::disable
Check if response type is text
if {[HTTP::header value Content-Type] contains "text"}{
Replace somestring with foobar
STREAM::expression "@somestring@foobar@"
Enable the stream filter for this response only
STREAM::enable
}
}
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
