GHTTPResult
The result of an HTTP request.
- typedef enum
- {
- GHTTPSuccess,
- GHTTPOutOfMemory,
- GHTTPBufferOverflow,
- GHTTPParseURLFailed,
- GHTTPHostLookupFailed,
- GHTTPSocketFailed,
- GHTTPConnectFailed,
- GHTTPBadResponse,
- GHTTPRequestRejected,
- GHTTPUnauthorized,
- GHTTPForbidden,
- GHTTPFileNotFound,
- GHTTPServerError,
- GHTTPFileWriteFailed,
- GHTTPFileReadFailed,
- GHTTPFileIncomplete,
- GHTTPFileToBig
- } GHTTPResult;
Constants
- GHTTPSuccess
- Successfully retrieved file.
- GHTTPOutOfMemory
- A memory allocation failed.
- GHTTPBufferOverflow
- The user-supplied buffer was too small to hold the file.
- GHTTPParseURLFailed
- There was an error parsing the URL.
- GHTTPHostLookupFailed
- Failed looking up the hostname.
- GHTTPSocketFailed
- Failed to create/initialize/read/write a socket.
- GHTTPConnectFailed
- Failed connecting to the HTTP server.
- GHTTPBadResponse
- Error understanding a response from the server.
- GHTTPRequestRejected
- The request has been rejected by the server.
- GHTTPUnauthorized
- Not authorized to get the file.
- GHTTPForbidden
- The server has refused to send the file.
- GHTTPFileNotFound
- Failed to find the file on the server.
- GHTTPServerError
- The server has encountered an internal error.
- GHTTPFileWriteFailed
- An error occured writing to the local file (for ghttpSaveFile[Ex]).
- GHTTPFileReadFailed
- There was an error reading from a local file (for posting files from disk).
- GHTTPFileIncomplete
- Download started but was interrupted. Only reported if file size is known.
- GHTTPFileToBig
- The file is too big to be downloaded (size exceeds range of interal data types).
Section Reference: Gamespy HTTP SDK