Forum Discussion
El-Guapo_29797
Nimbostratus
Jun 30, 2014How to load balance thick clients based on HTTP parameter?
I have a pool of 6 nodes & need an iRule to use with Universal which balances thick clients. Each client will have a unique string inserted in header. String starts with cid + numbers such as: http:/...
Kevin_Stewart
Employee
Jul 09, 2014what is the semicolon do when I used cid" 4 ";" ??
The syntax for findstr is:
findstr [source string] [search string] [skip count] [terminator character or count]
So:
findstr [HTTP::uri] "cid=" 4 32
says, find the part of the string that starts with "cid=" in the URI, skip 4 characters (the length of "cid="), and then move 32 characters up and stop. Now, if for example you had an X509::subject string:
CN=bob, OU=lab, DC=DOMAIN, DC=COM
And you wanted to grab the user's name, you'd use the character version of the terminator:
findst [X509::subject [SSL::cert]] "CN=" 3 ","
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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