Forum Discussion
BMARTIN_12200
Nimbostratus
Feb 17, 2009stream profile - set title browser
Hello, I created a rule to add information to the title field of the browser. His works on the first page of the portal, but when I open another application html from this portal, the title is not...
BMARTIN_12200
Nimbostratus
Feb 18, 2009
Hi Hoolio, I added at the beginning of the rule and have your code the following error
when HTTP_REQUEST {
if { $::rewrite_response_payload } {
if { [HTTP::header exists "Accept-Encoding"] } {
Remove the Accept-Encoding header from the request
HTTP::header remove "Accept-Encoding"
}
}
}
when HTTP_RESPONSE {
STREAM::disable
if { [HTTP::header value Content-Type] contains "text" }{
switch [IP::server_addr] {
"x.x.x.nn" { set nvip "thisname_nn" }
"x.x.x.uu" { set nvip "thisname_uu" }
default { set nvip [IP::server_addr] }
}
STREAM::expression "@<\[Tt\]\[Ii\]\[Tt\]\[Ll\]\[Ee\]>@$nvip @"
Active "stream profile"
STREAM::enable
}
}
when STREAM_MATCHED {
log local0. "<\[Tt\]\[Ii\]\[Tt\]\[Ll\]\[Ee\]>: matched: [STREAM::match], replaced with: $nvip "
}
ERROR in /var/log/ltm
Feb 18 10:40:36 tmm tmm[1145]: 01220001:3: TCL error: Rule irule_TEST_JBOSS_SET_TITLE_BROWSER - can't read "::rewrite_response_payload": no such variable while executing "if { $::rewrite_response_payload } { if { [HTTP::header exists "Accept-Encoding"] } { Remove the Accept-Encoding header from the r..."
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