Forum Discussion
4 Replies
Sort By
- The_Bhattman
Nimbostratus
Hi Erikwhen HTTP_REQUEST { if { ([HTTP::host] equals "www.domain.com" ) and ([HTTP:uri] equals "someuri/goeshere") } { switch -glob [HTTP::header "User-Agent"] { "1.x" { pool pool_wap_gateway1 "2.0" { pool pool_wap_gateway2 } "3.0" { pool pool_wap_gateway3 } } }
- hooleylist
Cirrostratus
Just a small note: if the User-Agent header contains the version as part of the string, you'd want to add wildcards to the switch cases: - Eridano_Di_Piet
Nimbostratus
Hi, - hooleylist
Cirrostratus
Hi Erik,