Forum Discussion
David_Sherman_2
Nimbostratus
Oct 31, 2006Header sanitize
The following IRule was working.
when HTTP_REQUEST {
set OrgAdr [IP::remote_addr]:[TCP::remote_port]
set DestServer [IP::local_addr]
HTTP::header sanitize Host + Content-T...
Deb_Allen_18
Nov 15, 2006Historic F5 Account
One of my customers is using code like this to remove /replace inbound headers (not tested by me personally, but I believe they have verified that it removes multiple instances of the same header):
when HTTP_REQUEST {
strip all instances of existing headers
foreach header {Header1 Header2 Header3} {
while { [HTTP::header exists $header] } {
HTTP::header remove $header
}
}
HTTP::header insert Header1 Value
}
HTH
/deb
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