Tom_89796
Jan 12, 2013Nimbostratus
irule not appending IP
Have the following irule for appending IP address to uri on incoming requests. login and login2 append IP address as expected, ACCGateway in uri is not appending IP address as expected.
when HTTP_REQUEST {
switch -glob [string tolower [HTTP::uri]] {
"*login.aspx" -
"*login2.aspx" -
"*ACCGateway.aspx" {
HTTP::uri "[HTTP::uri]?IPAddress=[getfield [IP::client_addr] % 1]"
}
"*login.aspx\?*" -
"*login2.aspx\?*" -
"*ACCGateway\?*" {
HTTP::uri "[HTTP::uri]&IPAddress=[getfield [IP::client_addr] % 1]"
}
}
}