Forum Discussion
cralston_17844
Nimbostratus
Jan 20, 2010TCL error while executing "HTTP::method"
I've been trying to clean up my /var/log/ltm errors lately, at the suggestion of F5 support. One that's been bugging me is this:
tmm tmm[1208]: 01220001:3: TCL error: IRULE_foobar - ...
hoolio
Cirrostratus
Jun 13, 2011Hi Mike,
You can use catch like this:
when HTTP_REQUEST {
Use catch to handle any error. Save the output to $result for logging of an error or use if successful.
if {[catch {HTTP::method} result]}{
log local0. "[IP::client_addr]:[TCP::client_port]: Error running HTTP::method ($result). Headers: [HTTP::request]"
reject
} else {
Add the rest of the code here which is triggered if the HTTP::method command succeeds
Check if HTTP::method returned HEAD
if {$result eq "HEAD"}{
...
}
}
}
Also, I don't think you'll ever see two question marks in the URI as a question mark delineates the path and the query string. And you normally wouldn't see two of the same query string parameter names like tag=1&tag=1.
Aaron
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
