ghttpPostAddString
Adds a string to the post object.
- GHTTPBool ghttpPostAddString(
- GHTTPPost post,
- const gsi_char * name,
- const gsi_char * string );
Routine | Required Header | Distribution |
---|---|---|
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
Routine | GSI_UNICODE Not Defined | GSI_UNICODE Defined |
---|---|---|
ghttpPostAddString | ghttpPostAddStringA | ghttpPostAddStringW |
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.
Section Reference: Gamespy HTTP SDK
See Also: ghttpNewPost, ghttpPost, ghttpPostAddFileFromDisk, ghttpPostAddFileFromMemory