Forum Discussion
Erick_Hammersm1
Feb 02, 2007Historic F5 Account
How to replace only second instance of header?
I'm trying to write a rule that will take an HTTP request that contains two "X-Forwarded-For" headers and rename only the second one. Is there any way to accomplish this in v9.1.2? I can get it done...
Danielseyoum
Altostratus
Feb 14, 2007Try the getfield command:
getfield
I am not sure of the separator of the host header string (replace ":" with the appropriate separator) and use 2 for the field_number
when HTTP_REQUEST {
[getfield [HTTP::header] ":" 2]
}
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