Forum Discussion
Al_7443
Nimbostratus
Jul 05, 2018Parse URI parameters when parameters preceded by Hash (#) not question mark
Hi All,
On of our MFA apps returns a token via the URI string. Instead of starting with a ? like pretty much everything, it returns a https://myapp.net/myResponsetoken=blah&state=blah...
I've tried [HTTP::uri] and [HTTP::query] to no avail, any ideas how I can pull these params out?
- Andy_McGrath
Cumulonimbus
Best option if you know the keys to create an array using the getfield and split commands
array set uriParameters [split [getfield [HTTP::uri] "" 2] "=&"] log local0. "Token = $uriParameters(token), State = $uriParameters(state)"
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