nn::http::Connection::SetPostDataEncoding Member Function

Syntax

nn::Result SetPostDataEncoding(
     EncodingType type
);

Arguments

Name Description
in type Encoding type to set.

Return Values

Returns the function's execution result. Returns one of the Result values listed below.


Value Description
Result::IsSuccess Process was successful.
ResultPostAddedAnotherErr POST data has already been configured. The AddPostDataRaw function returns this value when raw POST data has already been configured or if the mode is set to SetLazyPostDataSetting. When calling this function, be sure to avoid conflicts with these POST data settings. (To reconfigure POST data, first call the Connection object'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 already connected. You must call this function before calling Connect.)
ResultPostUnknownEnctypeErr Error indicating that an invalid encoding type was specified. The function returns this value when the encoding type is specified as a value other than those defined by the EncodingType enumerated type. (To reconfigure POST data, first call the Connection object's Finalize function, and then call Initialize again.)
A value other than the above Unexpected error (See http_Result.h for details).

Description

Sets the encoding type for an HTTP request's POST data.

Revision History

2010/06/14
Initial version.

CONFIDENTIAL