Learn F5 Technologies, Get Answers & Share Community Solutions Join DevCentral

Filter by:
  • Solution
  • Technology
Answers

Extract email from uri in APM

In APM I'm trying to extract email from uri and assign it to custom variable, but without luck

basically from URL https://web.domain1.com/?User=user3@AnotherDomain.com&variable2=blabla, I want to assign user3@AnotherDomain.com to variable userid.

I tried something like this: mcget {URI::query [HTTP::uri] User} return

But no results (but I'm sort of newbie to bigip) Any suggestions?

0
Rate this Question

Answers to this Question

placeholder+image
USER ACCEPTED ANSWER & F5 ACCEPTED ANSWER

You can try with this

when ACCESS_SESSION_STARTED {
      ACCESS::session data set session.custom.mail [URI::query [HTTP::uri] User]     
}
0
Comments on this Answer
Comment made 1 week ago by Stanislas Piron 10237

This is an irule to enable on the virtual server, no irule event required in VPE!

This code evaluate the http request just before the first redirect to /my.policy

0
Comment made 1 week ago by Jcan_4445 2

Works like a charm :-) thanks

0