Kalpesh_48932
Oct 05, 2012Nimbostratus
irule with Contains operator
Hi All,
I have created irule, in fact wanted to have similar irule with contains operator.
when HTTP_REQUEST {
if {
[HTTP::uri] contains "AMSLang"
} then {
HTTP::redirect "http://sgsiaxhrmsgr1.saint-gobain.com:8201"}
{
HTTP::redirect "http://sgsiaxhrmsgr1.saint-gobain.com:8200"}
}
but it gives error in line 6. can someone please help with this.
error:
01070151:3: Rule [irule_ofx_idispo_ams_1.0] error: line 6: [undefined procedure: HTTP::redirect "http://sgsiaxhrmsgr1.saint-gobain.com:8200"] [{ HTTP::redirect http://sgsiaxhrmsgr1.saint-gobain.com:8200}]
Thanks