Forum Discussion
Jhaunu_Gupta
Nimbostratus
Sep 18, 2019Scan header for mdn in irule through regex
Hi, I want to get MDN from header through scan command with regex below is the example of header. % set toheader {tel:+12253941228;tag=MwsjgSMFBd} tel:+12253941228;tag=MwsjgSMFBd ...
youssef1
Cumulonimbus
Sep 18, 2019Hi,
I did not really understand what you wanted to do or what mdn means
but hope it will help you.
find below a simple irule that allow to retrieve value of header:
when HTTP_REQUEST_DATA {
set toheader "tel:+12253941228;tag=MwsjgSMFBd"
regexp {^tel:([^;]+);tag=(.*)$} $toheader -> tel tag
log local0. "tel: $tel - tag : $tag"
}let me know if you need more details or explain me exaclty what is the wanted result!!!
regards
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
