Forum Discussion
DL-IT-Load-Bala
Nimbostratus
Sep 01, 2018can we capture specific URI value from uri path
Hi
set captured_value [getfield [HTTP::uri] "/" 4]
In above syntax instead of "/" 4, can we capture specific URI value from path like
https://www.abc.com/114/valueA=100/valueB=200
Can we ...
youssef1
Cumulonimbus
Sep 02, 2018Hi,
2 solutions for you:
First solution:
set uri [HTTP::uri]
regexp {^.*valueA=([^\/]+)\/valueB=(.*)$} $uri -> valuea valueb
Second solution:
set uri [HTTP::uri]
set valuea [findstr $uri /valueA= 8 /]
set valueb [findstr $uri /valueB= 8 end]
Hope it will help you. keep me in touch.
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