Forum Discussion
Craig_Freyman_1
Nimbostratus
Feb 09, 2006Gathering Statistics
We're trying to find a way to gather information about what version of HTTP people's browsers are using on a site of ours.
We've started with this irule:
when HTTP_REQUEST {
...
Colin_Walker_12
Feb 09, 2006Historic F5 Account
Interesting. Perhaps you could add another check in your if to work around this?
You could check for the first HTTP_REQUEST event fired on each connection:
when RULE_INIT {
set count 0
}
when HTTP_REQUEST {
incr count
if { $count == 1 } {
if {([HTTP::version] == "1.0") or ([HTTP::version] == "0.9") } {
log local0. "HTTP version is [HTTP::version]"
}
}
}
when CLIENT_CLOSED {
set count 0
}Something like that might get you where you need to go. You might have to play around with it a bit.
-Colin
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
