Forum Discussion
Erasing 2 Headers using http profile
Can anyone let me whether we can erase two HTTP headers using http profile "Request Header Erase" option.
4 Replies
- hoolio
Cirrostratus
Hi Kalyan,
I think you can actually put a space delimited list of header names you'd like to remove from requests in the HTTP profile 'Request Header Erase' field.
Aaron - Kalyan_Reddy_Da
Nimbostratus
Hi Aaron,
i tried space as delimeter and it is not working.
Any other solutions except irule .
Your help is greatly appreciated - hoolio
Cirrostratus
Hrm... I thought I saw an F5 solution suggesting the space delimited header names would work. I just tested on 10.2 and found it didn't work. Sorry about that.
If this isn't supported, I think you'd need to use an iRule. You could confirm this by opening a case with F5 Support. It seems like it would make a good request for enhancement. If you do open a case and get a change request number, could you reply back here with it for others to reference?
Thanks, Aaron - Steve_McCarthy_Historic F5 Account
Header Erase field takes a single header to remove. Multiple headers are not supported.
There are some good alternatives, however.
-
LTM Policy (http-header remove name headername) This is a good solution which should be fast, and doesn't (necessarily) incur the overhead of Tcl/iRule execution.
-
iRules - highly flexible, but extra overhead
a) HTTP::header remove headername Remove specified headername, add as many as desired
b) HTTP::header sanitize Remove ALL headers except for essential ones needed by the protocol
-
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* 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
