Bill_8097
Mar 07, 2013Nimbostratus
IRule to remove all headers with the same base name
Due to header length limitations of my backend application I need to remove un-used headers that are being sent from my WebSeal to the backend.
I have the following IRule in place now:
when HTTP_REQUEST {
log local0.info "[HTTP::header iv-creds]"
HTTP::header remove iv-creds
HTTP::header remove iv-creds-1
HTTP::header remove iv-creds-2
HTTP::header remove iv-creds-3
HTTP::header remove iv-creds-4
HTTP::header remove iv-creds-5
HTTP::header remove iv-creds-6
}
Is it possible to wildcard the header iv-creds? That header is split and can grow to additional headers. For example sometimes I have iv-creds plus iv-creds 1-9.
I'm trying to make this as efficient as possible. Thank you for your help!