Forum Discussion
BMARTIN_12200
Nimbostratus
Dec 15, 2008Add Ip member pool in my header browser
Hello, my application is spread over 24 servers JBOSS cluster of 6 pools of 4 members. To facilitate maintenance I would like to appear in the title of the browser the IP address of the member on whic...
hoolio
Cirrostratus
Dec 16, 2008If you want to insert text in the response content, you could use a stream profile and iRule to configure it. You can use this rule by adding a blank stream profile to the VIP and a custom HTTP profile with Response Chunking set to Rechunk.
when HTTP_RESPONSE {
Check if response type is text
if {[HTTP::header value Content-Type] contains "text"}{
Replace with 1.1.1.1 where 1.1.1.1 is the server IP adddress
STREAM::expression "@<\[Tt\]\[Ii\]\[Tt\]\[Ll\]\[Ee\]>@[IP::server_addr] - @"
Enable the stream filter for this response only
STREAM::enable
} else {
Response wasn't text, so disable the stream filter
STREAM::disable
}
}
when STREAM_MATCHED {
This event can is for debug only and can be removed once testing is complete
log local0. "Matched: [STREAM::match]"
}
I'd guess the TCL error with the payload replace is occurring when the response size is over 1Mib and the collection is being limited to just a portion of the response payload.
Aaron
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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
