Forum Discussion
boneyard
MVP
Apr 25, 2012getting first part of uri
im looking for a way to only get the first part of an uri
so in all case i should only get test1
http://something/test1
http://something/test1/
http://something/test1/som...
hoolio
Cirrostratus
Apr 25, 2012Or with better error handling:
if {[scan [HTTP::path] {/%[^/.]} dir] == 1}{
log local0. "parsed $dir"
} else {
log local0. "no dir parsed"
}
Aaron
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
