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
ResultSuccess Process was successful.
ResultPostAddedAnotherErr POST data has already been configured. The function returns this value when POST data of the Raw type in AddPostDataRaw has already been configured, or if "lazy"(delayed) POST data configuration mode is set in the 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 specified by the EncodingType. (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