Forum Discussion
F5-Oetti
Nimbostratus
Jan 26, 2018Question about persistance by checking and if not there inserting HTTP Header Field
Hello,
I have ask a question to the experienced experts:
I wanted to setup persistance for a service depending on then HTTP Header Field True-Client-IP.
So I want to check if the filed is e...
Ilian_Ivanov
Nimbostratus
Jan 26, 2018Hello,
You can try with that one:
when HTTP_REQUEST {
set clientip ""
if { [HTTP::header exists True-Client-IP] } {
set clientip [HTTP::header True-Client-IP]
}
else {
HTTP::header insert True-Client-IP [IP::client_addr]
set clientip [HTTP::header True-Client-IP]
}
persist uie $clientip
}
Regards
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
