ghttpSave

GameSpy SDK

ghttpSave

Make a HTTP GET request and save the response to disk.

GHTTPRequest ghttpSave(
const gsi_char * URL,
const gsi_char * filename,
GHTTPBool blocking,
ghttpCompletedCallback completedCallback,
void * param );
RoutineRequired HeaderDistribution
ghttpSave<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
filename
[in] The path and name to store the file as locally.
blocking
[in] If true, this call doesn't return until the file has been received.
completedCallback
[in] Called when the file has been received. Can be NULL.
param
[in] Optional free-format user data for use by the callback

Remarks

This function is used to download the contents of a web page directly to disk. The application supplies the path and filename at which to save the response.
Use ghttpSaveEx for extra optional parameters.