Forum Discussion
anuj_2931
Jun 02, 2012Nimbostratus
Trying to write an irule which inspects url parameters to select the appropriate pool
Hi Guys,
I have a Virtual server which will get http requests like this http://mysite.com/login?id=xyz-1, http:://mysite.com/login?id=xyz-2.
I want the iRule to inspect the paramet...
hooleylist
Jun 04, 2012Cirrostratus
You might want to check the specific parameter value to see if it ends in 0 or 1 instead of the full query string to be more exact. You can use [URI::query [HTTP::uri] id] to get the id parameter value.
And if subsequent requests don't have that parameter set and you still want to persist clients to the prior pool, you will probably want to set a cookie to track when a pool selection has been made and then look for that cookie on requests without the id parameter.
Here's a related example:
https://devcentral.f5.com/Community/GroupDetails/tabid/1082223/asg/50/aft/2158969/showtab/groupforums/Default.aspx2234700
Aaron
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