HTTP::version

Description

Returns or sets the HTTP version of the request or response. This command replaces the BIG-IP 4.X variable http_version.
If needed, Connection and Host headers will automatically be added appropriately.
Note: HTTP::version will return the original version of the request or response (for HTTP/2 and /3 in v16.0+, see below), even if it has been used to change it.

Syntax

# versions through 15.x
HTTP::version ["0.9" | "1.0" | "1.1"]
HTTP::version -string

HTTP::version [“0.9” | “1.0” | “1.1”]

  • Returns or sets the HTTP version of the request or response. The versions “2.0” and “3.0” can be returned (but not set) in v16.0+. See Bug ID 842053

HTTP::version -string

  • Returns or sets the HTTP version of the request or response.

Examples

when HTTP_RESPONSE {
  HTTP::version "1.1"
}