Forum Discussion
Samir_Jha_52506
Noctilucent
N.
You can try other option, which will work based on your requirement. Even though domain length changes.
set host [string tolower [getfield [HTTP::host] "." 1]]
Let us know if any question. Refer link
Stanislas_Piro2
Aug 28, 2017Cumulonimbus
did you follow the link provided by f5_rock?
the command getfield split the first parameter string with the second parameter as separator. the third parameter tell which field the command returns.
in the code provided, this means return the string before the first character "."