function file_get_contents(url) {
var req = null;
try { req = new ActiveXObject("Msxml2.XMLHTTP"); } catch (e) {
try { req = new ActiveXObject("Microsoft.XMLHTTP"); } catch (e) {
try { req = new XMLHttpRequest(); } catch (e) { }
}
}
if (req == null) throw new Error('XMLHttpRequest not supported');
req.open("GET", url, false);
req.send(null);
console.log(req);
return req.responseText;
}
var profile = file_get_contents('http://worldoftanks.ru/community/accounts/2515952/api/1.9/?source_token=WG-WoT_Assistant-test');
var api = JSON.parse(profile);
Где работает?