mburnham_59608
Aug 02, 2011Nimbostratus
Use a variable in REWRITE_RESPONSE_DONE that was set in ACCESS_POLICY_COMPLETED
Hi all,
I would like to use a variable set in ACCESS_POLICY_COMPLETED (as below) in the REWRITE_RESPONSE_DONE event.
when ACCESS_POLICY_COMPLETED {
set targetbaseurl "https://moo.foo.com"
mangle the targetbaseurl into hex encoding for rewrite engine
binary scan $targetbaseurl H* encodedbaseurl
set mangled_url [concat [ACCESS::session data get {session.server.network.protocol}]://[ACCESS::session data get {session.server.network.name}]/f5-w-$encodedbaseurl\$\$[ACCESS::session data get {session.server.landinguri}] ]
log local0. "mangled URL attempt 109: $mangled_url"
-------------------------------------------------------
}
Is this possible?
Thanks much,
Mark