Forum Discussion
Scott_McCool_11
Nimbostratus
Jun 06, 2007Insert custom header if it does not exist in v4
Is there any way I can insert a new HTTP header in v4 (I understand this is fairly simple in v9) if the header doesn't already exist in the request?
Basically, if MY_CUSTOM_HEADER is a...
Colin_Walker_12
Sep 27, 2007Historic F5 Account
You should be able to use the "exists http_header" command to determine if the header is present. You could then forward it to a pool that inserts the header, as you mentioned above.
Something like:
if( exists http_header "MY_CUSTOM_HEADER" ) {
use pool normalPool
} else {
use pool insertPool
}
Colin
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