Forum Discussion
vivek_76299
Nimbostratus
Jul 08, 2010how to extracting part of a header
Hi All,
There is a HTTP header "ROUTE=Poison^Abb^POISON007;TCS^Abb^CL02;Virtual^Abb^VPOOL1" or "ROUTE=TLL^Add^CL02;Virtual^Abb^VPOOL2". How can i extract the "Virtual^Abb^XXXXX" from the header. I read that substr is not recommended to use with the optional 3rd parameter. Please let me know the how the above value can be obtained in an iRule.
- hoolio
Cirrostratus
If there are arbitrary numbers of fields in between the ^'s, most string/scan operations wouldn't work. Is there a pattern that you want to parse the two fields between the carets after Virtual^?
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