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 replacement.
when HTTP_RESPONSE_DATA {
regsub "somestring" [HTTP::payload] "foobar" newdata
set clen [string length newdata]
log local0. "$newdata"
HTTP::payload replace 0 $clen $newdata
HTTP::release
}
when im trying to access the page, my firefox tells me the server is using some kind of unknown compression and it can therefore not display the page.
in the f5 logfile i've got just some binary data.
is the http_response_data maybe called after the payload got processed through ssl encryption and so gets destroyed by the replacement?
Any Help would be appreciated :-)
Thanks, Moritz
- hoolio
Cirrostratus
Hi Moritz,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 } }
- hoolio
Cirrostratus
What are the symptoms of the issue? - Moritz_Krinke_6
Nimbostratus
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