FreeRTOS:
HTTPS Client
HTTPS Client v1.0.0 library
|
Return to main page ↑ |
Writes the request body to the network for the request represented by reqHandle.
This function is intended to be used by an asynchronous request. It must be called within the IotHttpsClientCallbacks_t.writeCallback.
In HTTP/1.1 the headers are sent on the network first before any body can be sent. The auto-generated header Content-Length is taken from the len parameter and sent first before the data in parameter pBuf is sent. This library does not support Transfer-Encoding: chunked or other requests where the Content-Length is unknown, so this function cannot be called more than once in IotHttpsClientCallbacks_t.writeCallback for an HTTP/1.1 request.
isComplete must always be set to 1 in this current version of the HTTPS client library.
If there are network errors in sending the HTTP headers, then the IotHttpsClientCallbacks_t.errorCallback will be invoked following a return from the IotHttpsClientCallbacks_t.writeCallback.
Example Asynchronous Code
[in] | reqHandle | - identifier of the connection. |
[in] | pBuf | - client write data buffer pointer. |
[in] | len | - length of data to write. |
[in] | isComplete | - This parameter parameter must be set to 1. |