Forum Discussion
Kevin_Davies_40
Nacreous
In v9 there were string data groups but no key value pair as there is in v10. Take the $::xxx_direct data group, create it with the same name xxx_direct but seperate each string on the first space into key and value pairs. Before the space is the key. The rest after the space is the value. Then your comand will be
set direct [class match -value $host equals xxx_direct]
Another command you could update would be the two for setting host_org and collapse them into this.
set host_org [string tolower [getfield [HTTP::header "Host"] "." 1]]
stan_peachey_86
Nov 16, 2015Cirrus
Thanks! We will start testing in the newer code soon. Why does original set host_org change from 0 "." to "." 1 in your example?