Forum Discussion
junior_ra_16677
Nimbostratus
Aug 13, 2014How do I check if header does not exist ?
Hi,
I know how to check if header exists, but how can I make the irule only check if header exists. If it doesnt I was going add something to the header
if { [HTTP::header exists "test"] } {
2 Replies
- Frank_Schuhmach
Altostratus
you can try something like this
if { [HTTP::header exists "test"] } { do something if header exists } else { if header doesnt exist, insert it HTTP::header insert test blahblah } - Mattias_Anderss
Nimbostratus
if { !([HTTP::header exists "test"]) } {
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