com.HTTPServiceRequest.readDataRequest

Returns the body of a request into a BYTE.

Syntax

readDataRequest()
  RETURNING result STRING

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.

The request content can be read only once.

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