OK, so changing it to the below, but it is still not appending the IP address as expected. The get request conatins this directly - /ACC/ACCGateway.aspx?
I tried adding .aspx to the second entry of accgateway as well with no luck so far. I believe that .aspx should be there?
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.aspx\?*" {
HTTP::uri "[HTTP::uri]&IPAddress=[getfield [IP::client_addr] % 1]"
}
}
}