Forum Discussion
Daisuke_Kishimo
Nimbostratus
Mar 12, 2007I want to evaluate character string of Cookie by a hex digit.
Hello all.
I'm Japanese.I am weak in English.
But I do my best.
I want to evaluate character string of Cookie by a hex digit.
This cookie is "EX=......" by random of hex ...
AaronJB
SIRT
Mar 12, 2007What you need there is the 'scan' command, http://tmml.sourceforge.net/doc/tcl/scan.html , and I believe you'd want something like this:
when HTTP_REQUEST {
if { [HTTP::header exist "cookie"] }{
scan [HTTP::cookie "cookie"] "EX%2x" cookieval
if { $cookieval <= 15 } {
use pool_1
} elseif { $cookieval > 15 ....
Hope that helps,
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