Created
March 26, 2011 12:55
-
-
Save dolmen/888260 to your computer and use it in GitHub Desktop.
Tiny bootstrap scripts for curlIE
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
// Does not handle non-ASCII | |
(W=new ActiveXObject("WinHttp.WinHttpRequest.5.1")).Open("GET","http://curlie.googlecode.com/svn/trunk/curlIE.wsf");W.Send();WScript.Echo(W.ResponseText) |
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
' Does not handle non-ASCII | |
Set W=CreateObject("WinHttp.WinHttpRequest.5.1"):W.Open"GET","http://curlie.googlecode.com/svn/trunk/curlIE.wsf":W.Send:WScript.Echo W.ResponseText |
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
' Does not handle non-ASCII | |
Set W=CreateObject("WinHttp.WinHttpRequest.5.1"):W.Open"GET",WScript.Arguments(0):W.Send:WScript.Echo W.ResponseText |
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
// Loves binary! | |
var A=WScript.Arguments,X=ActiveXObject,W=new X("WinHttp.WinHttpRequest.5.1"),F=new X("ADODB.Stream");W.Open("GET",A(0));W.Send();F.Type=1;F.Open();F.Write(W.ResponseBody);F.SaveToFile(A(1)); |
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
' Loves binary | |
Set A=WScript.Arguments:Set W=CreateObject("WinHttp.WinHttpRequest.5.1"):W.Open"GET",A(0):W.Send:Set S=CreateObject("ADODB.Stream"):S.Type=1:S.Open:S.Write W.ResponseBody:S.SaveToFile A(1) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment