Skip to content

Instantly share code, notes, and snippets.

@h5y1m141
Last active December 19, 2015 22:29
Show Gist options
  • Save h5y1m141/6027757 to your computer and use it in GitHub Desktop.
Save h5y1m141/6027757 to your computer and use it in GitHub Desktop.
var xhr = WScript.CreateObject("MSXML2.XMLHTTP"),urlList,length;
urlList = ["http://www.atmarkit.co.jp/","http://www.atmarkit.co.jp/ait/articles/1307/17/news061.html"];
length = urlList.length;
while( true ){
for(var i=0;i < length;i++){
xhr.open("GET", urlList[i]);
xhr.send();
WScript.Sleep(3000);
if( xhr.readystate === 4 ){
WScript.Echo("url:" + urlList[i] + "status:" + xhr.status );
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment