Created
February 23, 2014 18:05
-
-
Save parzonka/9174906 to your computer and use it in GitHub Desktop.
wget for windows cmd (credits: http://superuser.com/a/536400/131494)
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
cscript /nologo wget.js http://example.com |
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 WinHttpReq = new ActiveXObject("WinHttp.WinHttpRequest.5.1"); | |
WinHttpReq.Open("GET", WScript.Arguments(0), /*async=*/false); | |
WinHttpReq.Send(); | |
WScript.Echo(WinHttpReq.ResponseText); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment