Erik
Nov 24, 2016Nimbostratus
Problem with HTTP::version
Hi all, I wondering why this does not working. The result from HTTP::version always be 0.9 or 1.0 or 1.1. If I use Fiddler and send HTTP 3.4 it still say 1.1 in my first log line. Using standard http profile.
I trying to do the LAB 6.1 in the irule 12.1 course.
Could this be a bug in HTTP::version? Running on LTM version 12.1.0.
Thanks,
when RULE_INIT {
set sec_http_versions [list "0.9" "1.0" "1.1" ]
}
when HTTP_REQUEST {
log local0. "Request from [IP::client_addr] using HTTP/ [HTTP::version]"
if { ! [matchclass [HTTP::version] equals $::sec_http_versions ] } {
log local0. "Invalid HTTP version used, from [IP::client_addr] using
HTTP/[HTTP::version]"
reject
}
}