com.HTTPRequest.setVersion

Sets the HTTP version of the request.

Syntax

setVersion(
   version STRING )
  1. version defines 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. Depending on the error, a human-readable description of the problem is available in the SQLCA.SQLERRM register. See Error handling in GWS calls (STATUS).