Share this page 

Download HTML pageTag(s): WSH VBScript


With CreateObject("MSXML2.XMLHTTP")
  .open "GET", "http://www.rgagnon.com/howto.html", False
  .send
  WScript.Echo .responseText
End With

If you need to send an username and password :
With CreateObject("MSXML2.XMLHTTP")
  .open "GET", "http://www.rgagnon.com/secure/example.html", False, _
      myusername, mypassword
  .send
  WScript.Echo .responseText
End With