Forum Discussion
Edouard_Zorrill
Nimbostratus
Apr 26, 2017How to send the "HTTP::header insert" to the backend server using VPE (LTM+APM Mode)
Hey Guys,
Could anyone advise how I can send:
HTTP::header insert USER "[ACCESS::session data get session.logon.last.username]"
HTTP::header insert DOMAIN "[ACCESS::session data get se...
Stanislas_Piro2
Cumulonimbus
Apr 27, 2017Hi,
the ACCESS_ACL_ALLOWED is the best event to insert APM headers.
when ACCESS_ACL_ALLOWED {
if {![info exists APMusername]} {
set APMusername [ACCESS::session data get session.logon.last.username]
}
if {![info exists APMdomain]} {
set APMdomain [ACCESS::session data get session.custom.domain]
}
HTTP::header insert USER $APMusername
HTTP::header insert DOMAIN $APMdomain
}
Store these values in tcl variables for next requests,
ACCESS::session commands temporarily suspend iRule processing and may be used only if required.Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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
