Download HTML page

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

Related Posts

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注