ghttpPostAddString

GameSpy SDK

ghttpPostAddString

Adds a string to the post object.

GHTTPBool ghttpPostAddString(
GHTTPPost post,
const gsi_char * name,
const gsi_char * string );
RoutineRequired HeaderDistribution
ghttpPostAddString<ghttp.h>SDKZIP

Return Value

GHTTPTrue if the string was added successfully.

Parameters

post
[in] Post object
name
[in] The name to attach to this string.
string
[in] The string to send.

Remarks

If a post object only contains string, the content type for the upload will be the "application/x-www-form/urlencoded". If any files are added, the content type for the upload will become "multipart/form-data".

Unicode Mappings

RoutineGSI_UNICODE Not DefinedGSI_UNICODE Defined
ghttpPostAddStringghttpPostAddStringAghttpPostAddStringW

ghttpPostAddStringW and ghttpPostAddStringA are UNICODE and ANSI mapped versions of ghttpPostAddString. The arguments of ghttpPostAddStringA are ANSI strings; those of ghttpPostAddStringW are wide-character strings.