getExtSource
Gets external source on the specified address, using the specified User-agent.
Syntax
getExtSource = function(aURL, aUserAgent);
Parameters
- aURL
- functions: address where the request is sent
- aUserAgent
- functions: User-agent, which will be used to make a request
Returned value
- functions: structure containing the treated external data source
Notes
- If aUserAgent is not specified, it will be used the browser's User-agent.
Examples
var es = getExtSource('http://mysite.ru/extsource.txt'); log(JSON.stringify(es));