Forum Discussion
Patti_G_72768
Nimbostratus
Oct 21, 2013iRule for missing or blank headers (user-agent and accept)
Hi all, I'm working on another iRule creation. I need to create a rule that will detect if the request headers for user-agent and/or accept is blank/missing. I also need to be able to exclude uri ext...
Richard__Harlan
Oct 21, 2013Historic F5 Account
If you want to check if a header exists you can use the following if {[HTTP::header exists User-Agent ]}{
You are checking is the value of User-Agent is False not that it does not exist
Patti_G_72768
Nimbostratus
Oct 21, 2013Ok. Thank you verymuch!!!
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