Forum Discussion
Multiple HTTP::header inserts
Hello guys, I have a simple requirement insert 2 header values for application folks. they need to see the end client ip in 2 diff headers. I assumed the below iRule would accomplish that but I can see the end client ip being inserted only on SAP1-Forwarded-Client-IP, the other header SAP2-Forwarded-Client-I is empty.
When I expected was if the end client IP is 1.1.1.1 the in the header I expected to see
SAP1-Forwarded-Client-IP: 1.1.1.1
SAP2-Forwarded-Client-IP: 1.1.1.1
What I see now is
SAP1-Forwarded-Client-IP: 1.1.1.1
SAP2-Forwarded-Client-IP:
when HTTP_REQUEST { HTTP::header insert SAP1-Forwarded-Client-IP [IP::client_addr] and { HTTP::header insert SAP2-Forwarded-Client-IP [IP::client_addr] } }
1 Reply
- Vijay_E
Cirrus
Use the 2 insert command in 2 different lines without the "and" statement.
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