ghttpHead

GameSpy SDK

ghttpHead

Make a HTTP HEAD request, which will only retrieve the response headers and not the normal response body.

GHTTPRequest ghttpHead(
const gsi_char * URL,
GHTTPBool blocking,
ghttpCompletedCallback completedCallback,
void * param );
RoutineRequired HeaderDistribution
ghttpHead<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
blocking
[in] If true, this call doesn't return until finished
completedCallback
[in] Called when the request has finished.
param
[in] Optional free-format user data for use by the callback

Remarks

This function is similar to ghttpGet, except it only gets the response headers. This is done by making an HEAD request instead of a GET request, which instructs the HTTP server to leave the body out of the response.
Use ghttpHeadEx for extra optional parameters.