Forum Discussion
M_2
Altocumulus
Mar 31, 2015Irule : Need help
Hello Friends,
Can we write an irule to check for a specific string say "xyz", from the client request , in any header it may be .
I need to check for all the headers that a client passes on.
Sam.
1 Reply
- Michael_Jenkins
Cirrostratus
If you want to loop through and check the headers, you could do something like this:
foreach name [HTTP::header names] { if { [string tolower [HTTP::header value $name]] contains "xyz" } { Do something local0. "$name: [HTTP::header value $name]" } }
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