Forum Discussion
Albert__Tase_70
Nimbostratus
Jan 14, 2008Catch all
I have a very large irule and currently I need to add the following logic but not sure how too
I alkimia inserts say x in the http header when stff comes from them I need to be able to catc...
hoolio
Cirrostratus
Jan 14, 2008Hello Al,
I'm not sure I follow. Are you wanting to use a rule to insert a new header with the client IP address as the value if the header doesn't already exist in the request?
If so, you can use something like this:
when HTTP_REQUEST {
Check if HTTP header X is not present in the request and does not have value
if {not ([string length [HTTP::header value X])]}{
HTTP::header insert X [IP::client_addr]
}
}
Aaron
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