I have a VBScript file which makes a GET request to a URL:
Dim o
Set o = CreateObject("MSXML2.XMLHTTP")
o.open "GET", "http://www...", False
o.send
I’m new to VBScript. In C# I would use CredentialCache.DefaultCredentials on a web service object to pass the credentials along with this request. How can I do the same in VBScript?
Thanks!
To my knowledge, MSXML2 doesn’t support this. You could try automating Internet Explorer with:
I know that IE can pass your credentials via integrated authentication. However working with IE and VBScript tends to end with very inconsistent results, so I advise sticking with C# if this is a requirement and you have the option.