References, Scripting, Twitter, Twitter API
Leave a comment

Proxy authentication in a VBScript

While experimenting with Twitter API using VBScript, I was unable to access as the script was not authenticating to the proxy server inside the corporate network. I was using XMLHTTPRequest object initially and found out that there is no way I could authenticate to a proxy when using this object. I quickly looked at WinHttpRequest object and it provides a mechanism to set the proxy credentials. I thought it is worth sharing that here.

The overall output of this script will be 20 recent replies to your Tweeter account in XML format. That may not be really useful to you but I just wanted to describe how the proxy server authentication can be done using VBScript.

Filed under: References, Scripting, Twitter, Twitter API


Ravikanth is a principal engineer and the lead architect for Microsoft and VMware virtualized and hybrid cloud solutions within the Infrastructure Solutions Group at Dell EMC. He is a multi-year recipient of Microsoft Most Valuable Professional (MVP) award in Windows PowerShell (CDM) and Microsoft Azure. Ravikanth is the author of Windows PowerShell Desired State Configuration Revealed (Apress) and leads Bangalore PowerShell and Bangalore IT Pro user groups. He can be seen speaking regularly at local user group events and conferences in India and abroad.