Forum Discussion
atoth
Cirrus
Sep 24, 2016http::header value question
I'm trying to write an irule where based on the value of a custom http header it redirects to different servers. Its a little clunky, but when I figure where I'm going I put the values in datagroup ...
atoth
Cirrus
Sep 28, 2016That worked! Thanks!
One thing I wondered. What does the "--" after switch -glob do?
- janholtz_40468Sep 28, 2016
Nimbostratus
Kai is CORRECTLY terminating the options for switch, something which I should be doing but often forget...
 
https://devcentral.f5.com/s/articles/irules-101-04-switch
 
"--"
 
Marks the end of options. The argument following this one will be treated as string even if it starts with a -
 
- Kai_WilkeSep 28, 2016
MVP
You're welcome! 😉
And yes, the
will close the--
section to make the syntax more robust.switch -optionCheers, Kai
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
