APM: change HTTP Response
I'm getting a "?" character on a response and I want to change it I'm using this:
when HTTP_RESPONSE {
set iRedirectResp [HTTP::header Location]
log local0. "$iRedirectResp this made match!"
if { [HTTP::header Location] contains "www.reaxis.com?" } {
log local0. "the location made match on the IF"
HTTP::respond 302 Location https://www.reaxis.com Server CompaniXServer
}
}
Also I'm taking this logs:
Dec 20 08:01:51 vpn1test info tmm[16509]: Rule /Common/test_apm_i2c : The URL is www.companyx.co/biblos/imagenes/menu2_r1_c1.gif Dec 20 08:01:51 vpn1test info tmm[16509]: Rule /Common/test_apm_i2c : this made match! Dec 20 08:01:54 vpn1test info tmm[16509]: Rule /Common/test_apm_i2c : The URL is www.companyx.co/biblos/bases_datos/titulo_r.php? Dec 20 08:01:54 vpn1test info tmm[16509]: Rule /Common/test_apm_i2c : https://www.reaxys.com? this made match! Dec 20 08:01:55 vpn1test info tmm[16509]: Rule /Common/test_apm_i2c : The URL is www.reaxys.com? Dec 20 08:01:55 vpn1test info tmm[16509]: Rule /Common/test_apm_i2c : this made match!