30.05.2018 - Load the WinHttpRequest object. var WinHttpReq = new ActiveXObject("WinHttp. This method sets the user name to "UserName", the password to text to specifies the URL of a site that requires HTTP authentication):. VB.