Forum Discussion
Murugs_322349
Nimbostratus
Jun 02, 2017irule scan help in 12.x
I have a requirement to split the uri into two variables. First part of uri should be in one variable and all remaining uri should be in second variable.
If the uri is https://abc.com/abc/def/g...
Stanislas_Piro2
Cumulonimbus
Jun 03, 2017Hi
You must evaluate if the scan command matches the whole filter.
when HTTP_REQUEST {
set reqPath [HTTP::uri]
if { [scan $reqPath {/%[^/]%s} service url] == 2} {
HTTP::uri "$url"
} {
something wrong in URL. No second slash discovered
HTTP::uri "/"
}
}
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
