Forum Discussion
Deb_Allen_18
May 18, 2005Historic F5 Account
substr function with termination character
BIG-IP v 9.0.5
trying to optimize some rules, and using substr with a termination character doesn't seem to work...
It seems to re-init the system and I lose SSH c...
May 18, 2005
Deb,
The terminator optional argument to the substr command needs to be a string or a length. In your case, /, isn't either. Try enclosing the terminator argument with quotes like this:
when HTTP_REQUEST {
set inbound_uri [string tolower [HTTP::uri]]
log "inbound_uri: $inbound_uri"
log "[substr $inbound_uri 1]"
log "[substr $inbound_uri 1 "/"]"
pool Test-Pool
}
-Joe
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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
