SendHTTPRequest
Description
Send a request to the server specified in SetHTTPHost(), for example if requesting http: www.thegamecreators.com/index.php szServerFile should be "index.php".
This command waits for the server to respond and returns the server reply. If using tier 2 you must delete this reply when finished with it.
Does not work when exported to HTML5
Definition
string SendHTTPRequest( iHTTP, szServerFile )
char* agk::SendHTTPRequest( UINT iHTTP, const char *szServerFile )
string SendHTTPRequest( iHTTP, szServerFile, szPostData )
char* agk::SendHTTPRequest( UINT iHTTP, const char *szServerFile, const char *szPostData )
Parameters
- iHTTP - The ID of the connection to use.
- szServerFile - The file to request from the server, include everything after the domain part of the URL.
- szPostData - The raw post data to send to the server, note that & and = are special characters that separate variables.