nn::http::Connection::SendPostDataAscii Member Functionnn::Result SendPostDataAscii( const char * pLabel, const char * pValue );
| Name | Description | |
|---|---|---|
| in | pLabel | Label name of the data. |
| in | pValue | Data content. |
Result listed below. | Value | Description |
|---|---|
ResultSuccess |
Process was successful. |
| ResultSocketKeepAliveDisconnected | Error indicating that the server disconnected the keep-alive connection. The HTTP library usually reconnects automatically in such cases, but if set to the SetLazyPostDataSetting mode, the HTTP library does not automatically reconnect to resend POST data and instead returns this error. To reconnect, first call the Connection class's Finalize function, and then call Initialize again. |
| ResultSocketSendErr | Error indicating failure to send socket data. This could be because the server disconnected. To reconnect, first call the Connection class's Finalize function, and then call Initialize again. |
| ResultSocketConnectErr | Error indicating failure to connect to socket. This could be because the server does not exist or is not running. To reconnect, first call the Connection class's Finalize function, and then call Initialize again. |
| ResultDnsResolutionErr | Error indicating that name resolution failed for the host name specified in the URL. |
| ResultConnectionCanceledErr | Error indicating that the connection was canceled. To reconnect, first call the Connection class's Finalize function, and then call Initialize again. |
| ResultConnectionStatusErr | Error indicating an invalid state. This function cannot be called in the current communication state. (For example, the function returns this error if the system is not yet connected. You must call this function after calling Connect.) |
| ResultNotConnectedErr | Error indicating a Connection class instance for which the target URL is not assigned. The function has not done anything as it has been called on a Connection instance for which you have not yet successfully called Initialize. |
| ResultNotInitializedErr | Error indicating that the library is not initialized. None of this library's functions can be used until you first call nn::http::Initialize. |
| A value other than the above. | Unexpected error (See http_Result.h for details). |
Function used to set POST data (as ASCII strings) in "lazy" (delayed) POST data configuration mode.
In "lazy" POST data configuration mode, which can be entered by calling SetLazyPostDataSetting, this function can be used after either Connect or ConnectAsync is called. For more information about "lazy" POST data configuration mode, see the description of the SetLazyPostDataSetting function.
CONFIDENTIAL