WRITE_CONTENT

Append a segment of data to the UHTTP instance’s internal buffer prior to a SEND operation. It cannot be used in conjunction with the file operations.

UHTTP.WRITE_CONTENT(Content)

Parameters

Parameter

Type

Direction

Description

Content

string

OUT

Content to be appended

Return Values

Values Returned in $status

Value

Meaning

0

Success

-12

Internal error occurred

-14

Unread response data in the buffer

Description

The WRITE_CONTENT operation is used to append a segment of data to the UHTTP instance’s internal buffer, which will be used by the SEND operation. This operation only needs to be used to construct HTTP request payloads exceeding 10 MB. The WRITE_CONTENT operation can be called only if there are no pending results from a prior request.