Forum Discussion
Yaniv_99962
May 23, 2017Nimbostratus
remove HTTP header based on its value
Lets say I have a client sending multiple headers with same name but different values.
How can i remove just one of these headers if it's value is equal to something i'm looking for?
For example:
...
Anesh
May 23, 2017Cirrostratus
Try the below
when HTTP_RESPONSE {
foreach header_name [HTTP::header names] {
if {[HTTP::header value Test] equals "c"}{
HTTP::header remove $header_name
}
}
}
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