com.HTTPServiceRequest.readDataRequest

Returns the body of a request into a BYTE.

Syntax

readDataRequest(
  b BYTE)
  1. b defines a variable of type BYTE that will be filled with the request body.

Usage

The readDataRequest() method returns the body of the request in a BYTE.

Supported methods are PUT and POST.

The BYTE variable must be located in memory, and will be filled with the request body. The existing content of the BYTE will be discarded.

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).

The INT_FLAG variable is checked during GWS API call to handle program interruptions, for more details, see Interruption handling in GWS calls (INT_FLAG)