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...
Kevin_Davies_40
Nacreous
Apr 27, 2017This page will tell you what you need to know. More specifically the New events section... https://devcentral.f5.com/articles/http-event-order-access-policy-manager
Given the logs shows the ACCESS events do not appear to be triggered in APM+LTM mode the new events allow you to take actions post APM. The middle iRule is what you need. The others were just to confirm the behaviour.
when ACCESS_POLICY_COMPLETED {
log local0. "in ACCESS_POLICY_COMPLETED 500"
if {[ACCESS::policy result] eq "allow"} {
HTTP::header insert USER "[ACCESS::session data get session.logon.last.username]"
HTTP::header insert DOMAIN "[ACCESS::session data get session.custom.domain]"
}
}
when HTTP_REQUEST_RELEASE priority 200 {
log local0. "in HTTP_REQUEST_RELEASE 200"
HTTP::header insert USER "[ACCESS::session data get session.logon.last.username]"
HTTP::header insert DOMAIN "[ACCESS::session data get session.custom.domain]"
}
when HTTP_REQUEST_RELEASE priority 900 {
log local0. "in HTTP_REQUEST_RELEASE 900"
log local0. "Headers [HTTP::header names]"
}
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
