Last active
December 19, 2015 22:29
-
-
Save h5y1m141/6027757 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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