mrbongoco_64052
Apr 23, 2012Nimbostratus
HTTP_Response Client side
Hi
Ive been looking to write and Irule to strip out the HTTP::Header for all "Server" types but have been unable to get this work.
Essentially it works perfectly server side, but when a user initiates a connection to the VIP they get BIG-IP and Apache in the http::header server type:
This is a sample rule:
when HTTP_RESPONSE {
clientside {
if { [HTTP::header "Server"] contains "Apache" } {
HTTP::header replace "Server" "testing"
} elseif {
[HTTP::header "Server"] contains "IIS"} {
HTTP::header replace "Server" "testing"
}
}
}
The rule saves but it doesnt like the way I have forced it client side, I have done this as I believe the http response is a server side TCL command only.
Im wondering if I should be doing this another way but my Irule TCL is just not strong enough.
Thanks in advance for any pointers.