Web Request
The static global WebRequest class allows you to interact with the web via get, post and put. This is a more advanced feature that allows you to store/retrieve data to/from an external database.
Example Usage:
WebRequest.get(“https://www.google.com/”, self, “webRequestCallback”)
Member Variables
Like Object member variables, WebRequests have their own member variables.
A WebRequest is returned as part of a function, and these member variables are how your access its information.
Function Summary
All functions return a WebRequest.
Function Details
get(...)
Get data from the current URL.
get(url, callback_function)
function onLoad() print("Web Request Called") WebRequest.get("https://www.google.com", function(a) webRequestCallback(a) end) end function webRequestCallback(webReturn) print("Web Request Returned") print(webReturn.is_done) end
post(...)
Post the form to the URL.
post(url, form, callback_function)
put(...)
Post the data to the URL.