ghttpPost
Do a HTTP POST, which can be used to upload data to a web server.
- GHTTPRequest ghttpPost(
- const gsi_char * URL,
- GHTTPPost post,
- GHTTPBool blocking,
- ghttpCompletedCallback completedCallback,
- void * param );
Routine | Required Header | Distribution |
---|---|---|
ghttpPost | <ghttp.h> | SDKZIP |
Return Value
If less than 0, the request failed and this is a GHTTPRequestError value. Otherwise it identifies the request.
Parameters
- URL
- [in] URL
- post
- [in] The data to be posted.
- blocking
- [in] If true, this call doesn't return until finished
- completedCallback
- [in] Called when the file has finished streaming. Can be NULL.
- param
- [in] Optional free-format user data for use by the callback
Remarks
This function is used to post data to a web page, ignoring any possible response body sent by the server (response status and response headers can still be checked). If you want to post data and receive a response, use ghttpGetEx, ghttpSaveEx, or ghttpStreamEx.
Use ghttpPostEx for extra optional parameters.
Section Reference: Gamespy HTTP SDK
See Also: ghttpGet, ghttpGetEx, ghttpSave, ghttpSaveEx, ghttpStream, ghttpStreamEx, ghttpHead, ghttpPostEx