httpGet

From GTA Connected
Revision as of 17:41, 24 October 2020 by Mex (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

httpGet

Signature: void httpGet(string url, string postData, function dataReceivedCallback, function completedCallback)

Usage: perform a HTTP transfer asynchronously.

If parameter postData is a blank string, then the GET request method is used, otherwise the POST request method is used.

Parameters

string url The URL to send the HTTP request to.
string postData The data to send as the body of the HTTP request.
function dataReceivedCallback The scripting function to call when data is read from the connection. This can be called multiple times.
function completedCallback The scripting function to call when data has been entirely read on the connection.

Return

void

On failure: void