Forum Discussion
Wil_Schultz_101
Jan 17, 2012Nimbostratus
How can I test to see if HTTP::Status exists?
I'm using an HSL config that prints out some useful syslog information. It works well, except for one type of request. Unfortunately I don't know what that request looks like quite yet, basically I've...
hooleylist
Jan 17, 2012Cirrostratus
Hi Wil,
This runtime error from HTTP::status is noted in BZ374390. I think it's triggered when the server sends a response before TMM finishes sending the request. You could try using catch to handle any errors. Or you could open a case with F5 Support referencing BZ374390 and ask for a hotfix.
when HTTP_RESPONSE {
Use catch to handle any exception
if {[catch {HTTP::status} status]==0}{
log local0. "HTTP::status was successful and returned $status"
} else {
log local0. "HTTP::status failed and returned $status"
}
}
Aaron
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