Forum Discussion
AlexDeMarco
Nimbostratus
May 01, 2014odd pathing issue
Here is a snippet of code:
set path1 [URI::path [HTTP::uri] 1 1]
set path_len [string length $path1 ]
If I go to www.mysite.com in Firefox the path_len = 0 yet if I go via Chrome the leng...
Kevin_Stewart
Employee
May 01, 2014Perhaps the string trim command can help here:
when HTTP_REQUEST {
set path1 [string trim [URI::path [HTTP::uri] 1 1]]
set path_len [string length $path1]
log local0. "uri = [HTTP::uri]"
log local0. "path1 = $path1"
log local0. "path_len = $path_len"
}
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