com.HTTPResponse.getTextResponse

Returns an entire HTTP string as response from the server.

Syntax

getTextResponse()
  RETURNING data STRING

Usage

The getTextResponse() method returns a HTTP reponse as a entire string.

  • The Content-Type header can be of the form */*. For example: application/json.
  • Automatic conversion to the locale charset is performed when possible, otherwise throws an exception.

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