nn::http::Connection::AddPostDataAscii Member Functionnn::Result AddPostDataAscii( const char * pLabel, const char * pValue );
| Name | Description | |
|---|---|---|
| in | pLabel | Label name of the data. |
| in | pValue | Data content. |
Function used to configure POST data before Connecting (for ASCII strings).
Adds POST data (ASCII strings) to send through an HTTP request.
Use this function for the settings that are active before running Connect. The POST data is sent by running the Connect function after configuring the settings.
If data with the same label is already added before the call, the data is updated. (In other words, if data with the same label is added twice, the old value is deleted before the new value is added.)
If all POST data is set using only the AddPostDataAscii function, the labels and the data of the outgoing data are both encoded before they are sent.
(In this case, the Content-Type value in the HTTP header is set to "x-www-form-urlencoded".)
If any of the data (even a single item) 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