Forum Discussion
Bret_McGinnis_1
Nimbostratus
Aug 22, 2005user_agent field in the http header
I would like to use the user_agent field to determine which pool a request goes to. Is there an easy or perfered way to access the user_angent field.
I looked at the doc and searched the fo...
Bret_McGinnis_1
Nimbostratus
Aug 24, 2005Thanks, it works great. I have an additional request. Now that I can access the User-Agent I need to check it for and set the pool based on the results. I figured out how to code and if statement that is case insensitive but how do I also check for a for a specific string anywhere within the User-Agent field.
For example: If will be true when checking for the string "test" in User-Agent when the field contains the following sample data:
Test-image
test/v.2
msie Test/v2 m1
FireFox (Pre-Test)-M3 r2
thanks
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