# SendHTTPRequestASync

## 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 returns immediately and waits for the server to reply in the background. You can check the status of the reply with GetHTTPResponseReady and when it is ready retrieve the response with GetHTTPResponse.

## Definition

integer SendHTTPRequestASync( iHTTP, szServerFile )

int agk::SendHTTPRequestASync( UINT iHTTP, const char *szServerFile )

integer SendHTTPRequestASync( iHTTP, szServerFile, szPostData )

int agk::SendHTTPRequestASync( 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.