Forum Discussion
boneyard
Apr 25, 2012MVP
getting 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...
hooleylist
Apr 25, 2012Cirrostratus
Hi,
You can use HTTP::path to parse the path without the query string and then use scan to get the first directory:
scan [HTTP::path] {/%[^/.]} dir
log $dir
Aaron
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