Forum Discussion
SergioG_133218
Nimbostratus
Sep 12, 2014How to select pool based on http payload ...
Dears
I want to know if posible to follow ... The developers guys send via http to f5 some data ,this guys want to f5 select the pool based on http payload .
For example ...
Address: h...
Kevin_Stewart
Employee
Sep 12, 2014You could also use findstr to get the value:
set id [findstr [URI::decode [HTTP::payload]] "\"idTerminal\":\"" 14 "\""]
This will find the first instance of "idTerminal":" in the payload, skip 14 characters (the length of that string), and then collect everything up to but not including the very next double quote, which in this case should be the ID value.
One thing I'd want to point out here, is that for this method to be used to path management, you have to make sure that either a) a POST payload ID is in EVERY request, b) you have something in place for when it isn't, or c) you configure so,e form of persistence.
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