Forum Discussion
prilin_265672
Nimbostratus
Jun 09, 2017iRule Data Group non-case sensitive comparison
I am writing a program for filtering out headers from http requests. I have defined a new data group "ALLOWED_HEADERS" which contains the headers I want to allow in the request.
In my iRule file...
Samir_Jha_52506
Noctilucent
Jun 10, 2017Modified few event in iRule. Please have try and confirm.
foreach hname [string tolower [HTTP::header names]]
{ if { ![class matches -value $hname equals ALLOWED_HEADERS] }
HTTP::header remove "$hname" }
}
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
