Using LotusScript and MSXML to access a Domino site

This is a follow-up to the ”Getting a HTML page on the web from LotusScript”, where I showed how to get the contents of a web page with a GET. In the ”Using raw HTTP to access restricted Domino areas” and ”Using SSL in Java to access a Domino site” articles, I told you how to get HTML from a Domino site using raw HTTP and Java. Here comes the equivalent in LotusScript which logs in to a Domino server and gets the response.

Dim req As Variant Set req = CreateObject("msxml2.XMLHTTP") Call"POST", "", False) Call req.setRequestHeader("Content-type", "application/x-www-form-urlencoded") Dim postData As Variant postData = "Username=xyz&Password=abc" Call req.send(postData) Print "Response headers: " & req.getAllResponseHeaders() Print "Response: " & req.responseText