Difference between revisions of "UrlLoader:load"

From GiderosMobile
Line 9: Line 9:
 
  UrlLoader:load(url,method,headers,body)
 
  UrlLoader:load(url,method,headers,body)
 
</source>
 
</source>
'''url''': (string, optional) URL to download. This parameter is optional and if specified loading starts immediately. ''''''<br/>
+
=== Parameters ===
'''method''': (string, default = &quot;get&quot;) HTTP request method. ''''''<br/>
+
'''url''': (string, optional) URL to download. This parameter is optional and if specified loading starts immediately. <br/>
'''headers''': (table, optional) HTTP headers. ''''''<br/>
+
'''method''': (string, default = &quot;get&quot;) HTTP request method. <br/>
'''body''': (string, optional) HTTP body data. This data is sent as the message body of a request. ''''''<br/>
+
'''headers''': (table, optional) HTTP headers. <br/>
 +
'''body''': (string, optional) HTTP body data. This data is sent as the message body of a request. <br/>

Revision as of 11:45, 23 August 2018

Available since: Gideros 2012.2.2

Description


Loads data from the specified URL. If there is any load operation in progress, it is terminated and new progress starts.
Please refer to UrlLoader.new for more detailed description of `url`, `method` and `body` parameters.

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

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.