js code:
getPageText ( 'http://www.twitter.com/status/user_timeline/p3acemak3r.xml' );
function getPageText ( url ) {
var xmlhttp = new ActiveXObject('Microsoft.XMLHTTP');
xmlhttp.open('GET', url, true);
xmlhttp.onreadystatechange=function() {
if (xmlhttp.readyState==4) {
Debug.Trace(xmlhttp.responseText);
}
}
xmlhttp.send('');
}
Or you can use the URLDownloadToFileW:
js code:
getPageText ( 'http://www.twitter.com/status/user_timeline/p3acemak3r.xml' , 'C:\\twitter.txt' )
function getPageText ( url , file ) {
return Interop.Call ( 'urlmon', 'URLDownloadToFileW', null, url, file, 0, 0 ) === 0
}