user-agent
2 TopicsTrying to change HTTP header User agent
Hi everyone! I am trying to log the http:header user-agent to a variable using an iRule. I am trying to log exactly what broswer the client is using:(IE, FF, Chrome). Right now, the log shows: "Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)" Here is what I have so far. when HTTP_REQUEST { if {[HTTP::header "User-Agent"] contains "Firefox"} then { set user_agent "Firefox" } elseif {[HTTP::header "User-Agent"] contains "Chrome"} then { set user_agent "Chrome" } else { set user_agent "IE" log local0. "User Agent is: $user_agent" } } but the logs shows the same output. Any help would be great! Thanks everyone!499Views0likes3CommentsIrule to redirecting to pool based on User-Agent
Hi Team , We have a 443 VIP with default pool configured to it , We have a new requirement to create a new pool and redirect the traffic to the new pool based on the user-agent . VIP : vs_example_443 Default Pool : p_example_80 New Pool : p_example_useragent_80 So if the http header contains user agent "example useragent 2.1" the traffic should be forwarded to pool p_example_useragent_80 else to the default pool p_example_80 ? Can you please help me with the irule for this .369Views1like2Comments