Forum Discussion
Rahim_Abdul_re1
Nimbostratus
Jun 14, 2017Get URI and save it in variable
Is it possible to save URI in variable example
https://10.200.111.18/T001/mds/kljs?client312422352525
I want to save /mds/* (* mean everthing after /)
- Ed_Summers
Nimbostratus
Setting a variable in Tcl is done as:
set
HTTP::path will include the URI's path and filename.
HTTP::uri includes the path, filename, and any query string.
If you just need the path and filename, an example would be:
set myVariable [HTTP::path]
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