Download HTML page

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



If you find this article useful, consider making a small donation
to show your support for this Web site and its content.

Written and compiled by Réal Gagnon ©1998-2010
[ home ]