com.HTTPRequest.doDataRequest

Performs the request by sending binary data.

Syntax

doDataRequest(
   data BYTE )
  1. data is the binary data.

Usage

Performs the request by sending binary data contained in the BYTE variable.

Supported methods are PUT and POST.

The BYTE must be located in memory and not NULL otherwise operation fails.

The default Content-Type header is application/octet-stream, but it can be changed to any other mime type. For example: image/jpeg.

In HTTP 1.1, if the body size is greater than 32k, the request will be sent in several chunks of the same size.

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