Question:
I want to write a script that loads a url (eg. http://google.com) automatically. But I don’t want to install any 3rd party libraries or programs to the server. what’s the easiest way to do this?
I just my options are batch script, vb script or powershell right?
Answer:
you can use vbscript
1 2 3 4 5 6 7 |
url="http://somewhere.com" Set objHTTP = CreateObject( "WinHttp.WinHttpRequest.5.1" ) objHTTP.Open "GET", url, False objHTTP.Send wscript.Echo objHTTP.ResponseText objFile.Close |