Please post your Web Driver questions in official Web Driver forum

Wednesday, March 24, 2010

Working with URL Redirection with VB Scripts

Had chance to work on checking http status VB script. Looks like not all objects work when used URL redirect, so I used "WinHttp.WinHttpRequest.5.1".

Set winhttpreq = CreateObject("WinHttp.WinHttpRequest.5.1")

'Initialize HTTP Request
winhttpreq.Open "Get", "http://iteamic.com/"

'Send HTTP Request
winhttpreq.Send()


Print winhttpreq.StatusText
Print winhttpreq.ResponseText

for now iteamic website redirects to ciber and this code works perfect for it.
Fork me on GitHub