Forum Discussion
JRahm
Jan 28, 2011Admin
oh, I think you misunderstood my example. After the first line, I just demonstrate the string command in a native tcl shell. This is the only thing that is actual iRule code:
HTTP::uri [string range [HTTP::uri] [string first "/" [HTTP::uri] 1] end]
You'll want to make sure you use this only in the switch cases though so it doesn't arbitrarily pull path information out of all URIs.