com.HTTPRequest.setVersion

Sets the HTTP version of the request.

Syntax

setVersion(
   version STRING )
  1. version is the HTTP version of the request.

Usage

The setVersion() method defines the HTTP version of the request.

Accepted versions are 1.0 and 1.1 (only these two versions are supported).

The default is 1.1.

In case of error, the method throws an exception and sets the STATUS variable with the appropriate error number.