Tuesday 24 September 2013

How to read webpage in vbscript


Here is an example in which I am using xmlhttp object to get the url source  code.
We can get data from any website using below code.


url="http://www.makaninmumbai.com"
Set objHTTP = CreateObject("MSXML2.XMLHTTP")
Call objHTTP.Open("GET", url, FALSE)
objHTTP.Send
msgbox  (objHTTP.ResponseText)

No comments:

Post a Comment

Total Pageviews