Forum Discussion
Brad_Baker
Aug 11, 2016Cirrus
Persist based on query string
Our QA team needs a way to specify a backend node via a query string and have all subsequent queries persist to that node for testing purposes.
I have written the following irule which send the re...
Vijay_E
Aug 11, 2016Cirrus
You don't need persistence, if you are selecting a pool member based on the query string value. I misunderstood your initial request.
I am assuming, you are sending it to port 80 on the pool member and this could work:
when HTTP_REQUEST {
if { [HTTP::uri] contains "server" } {
set query_value [URI::query [string tolower [HTTP::uri]] server]
pool [LB::server pool] [member $query_value 80]
}
}
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects