nn::http::Connection::AddPostDataRaw Member Function

Syntax

nn::Result AddPostDataRaw(
     const void * pValue,
     size_t valueSize
);

Arguments

Name Description
in pValue Data content.
in valueSize Data size of pValue.

Return Values

Returns the processing result.

Description

Function used to configure raw POST data before Connecting.

Batch-sets all POST data to send in an HTTP request.
This function configures all POST data as direct raw data in binary format.
(Other similar functions set the label and value portions of the POST data.)

Use this function for settings before running Connect.
The POST data is sent by running the Connect function after configuring the settings.

Because this function configures all the POST data, an error is returned if a function that configures partial POST data (that is, AddPostDataAscii or AddPostDataBinary) is called after this function is used to configure all the POST data. (The Description of this error is nn::http::ER_POST_ADDED_ANOTHER.)
If this function is called multiple times to configure raw data, data that was set during previous calls is discarded and updated to the data from the most recent call.

Revision History

2010/06/14
Initial version.

CONFIDENTIAL