ghttpNewPost

GameSpy SDK

ghttpNewPost

Creates a new post object, which is used to represent data to send a web server as part of a request.

GHTTPPost ghttpNewPost( );
RoutineRequired HeaderDistribution
ghttpNewPost<ghttp.h>SDKZIP

Return Value

The newly created post object, or NULL if it cannot be created.

Remarks

After getting the post object, use the ghttpPostAdd*() functions to add data to the object, and ghttpPostSetCallback() to add a callback to monitor the progress of the data upload.
By default post objects automatically free themselves after posting. To use the same post with more than one request, set auto-free to false, then use ghttpFreePost to free it after every request its being used in is completed.