monica_74227
Oct 28, 2009Nimbostratus
how to do HTTP header replace with iRule
Hey guys,
well, the client wants to use special string to replace the http response header's host string. could you help me to check the following iRule or correct it
when HTTP_RESPONSE {
set newhost "www.xyz.com"
if { [HTTP::header host] eq "www.abc.com" } {
HTTP::header replace host $newhost }
}
thanks!