Forum Discussion
gdoyle
Oct 28, 2018Cirrostratus
I think I figured out the answer to this. I can set a variable to be the length of the URL up to where I want it to define, then end it 4 before the end of the URL... So even if it is "mydomainCRAZY.com" I would do something like:
set state [string range [HTTP::host] 8 end-4]
That will define "CRAZY" as the ${state} variable, and I can insert that into the URI.
Does that sound right?