UrlLoader:load: Difference between revisions

From GiderosMobile
m Text replacement - "<source" to "<syntaxhighlight"
mNo edit summary
 
Line 7: Line 7:
<syntaxhighlight lang="lua">
<syntaxhighlight lang="lua">
UrlLoader:load(url,method,headers,body)
UrlLoader:load(url,method,headers,body)
</source>
</syntaxhighlight>


Please refer to [[UrlLoader.new]] for more detailed description of ''url'', ''method'' and ''body'' parameters.
Please refer to [[UrlLoader.new]] for more detailed description of ''url'', ''method'' and ''body'' parameters.

Latest revision as of 09:46, 27 July 2026

Available since: Gideros 2012.2.2
Class: UrlLoader

Description

Loads data from the specified URL. If there is any load operation in progress, it is terminated and new progress starts.

UrlLoader:load(url,method,headers,body)

Please refer to UrlLoader.new for more detailed description of url, method and body parameters.

Parameters

url: (string, optional) URL to download. This parameter is optional and if specified loading starts immediately
method: (string, default = "get") HTTP request method headers: (table, optional) HTTP headers body: (string, optional) HTTP body data. This data is sent as the message body of a request