Forum Discussion

Patti_G_72768's avatar
Patti_G_72768
Icon for Nimbostratus rankNimbostratus
Oct 28, 2013

Specifying a http protocol in an iRule

Hi, is there a way to specify the http protocol in an iRule?

 

Woud it be something like HTTP::protocol eq "HTTP/1.0" or would I use HTTP::version eq "HTTP/1.0"?

 

4 Replies

  • The [HTTP::version] command will return the protocol version (ex. "1.0" or "1.1"), but will not set it. Do you need to set it, or do you simply need to evaluate it?

     

  • Then something like this:

    when HTTP_REQUEST {
        if { [HTTP::version] equals "1.0" } {
             do something
        }
    }