Forum Discussion
Antonio_Varni
Nimbostratus
Jan 21, 2008replace all instances of a HTTP header
How can I replace all instances of a given header?
Specifically in my case I am trying to remove all previously set X-Forwarded-For headers before having the LTM inject it's own. The X-Forwarded...
hoolio
Cirrostratus
Jan 21, 2008Deb posted a nice solution for this a while back:
when HTTP_REQUEST {
strip all instances of the given header
while {[HTTP::header exists x-forwarded-for]}{
HTTP::header remove x-forwarded-for
}
}Aaron
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