Forum Discussion
am_gli_287451
Dec 11, 2017Nimbostratus
string trim generating strange results
Hi,
I have an issue with one of my string manipulations with variables:
set test [ACCESS::session data get session.http.last.response_cookie]
set test [lindex [split $test "|"] 0]
set test [stri...
Stanislas_Piro2
Dec 11, 2017Cumulonimbus
you can split header values with following code:
split with both = and | characters and create an array
array set cookie [split $test "=|"]
get the value of cookie named Test
set test2 $cookie(Test)
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