Forum Discussion
Moe_Jartin
Cirrus
Aug 03, 2010Remove Multiple Headers
We have an issue where a SSO application is inserting headers which back end applications use to personalize content. There is a bug in the application software that causes problems if headers are in...
hoolio
Cirrostratus
Aug 03, 2010Hi Joe,
Here is an example which will remove request headers that don't have a value:
when HTTP_REQUEST {
Loop through each header by name
foreach a_header [HTTP::header names] {
Check if the header value is empty
if {[HTTP::header $a_header] eq ""}{
Remove the header
HTTP::header remove $a_header
}
}
}
Aaron
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