nn::http::Connection::AddPostDataBinary Member Functionnn::Result AddPostDataBinary( const char * pLabel, const void * pValue, size_t valueSize );
| Name | Description | |
|---|---|---|
| in | pLabel | Label name of the data. |
| in | pValue | Data content. |
| in | valueSize | Data size of pValue. |
Function used to configure binary POST data before Connecting.
Adds POST data (binary data) to send through an HTTP request.
Use this function for settings before running Connect.
The POST data is sent by running the Connect function after configuring the settings.
If data with the same label has already been added before the call to this function, this function updates the data.
(In other words, if data with the same label is added twice, the old value is deleted before the new value is added.)
If any of the data is set with AddPostDataBinary, all POST data is sent without being encoded.
(In this case, the Content-Type value in the HTTP header is set to "multipart/form-data".)
CONFIDENTIAL