Hello Forum,
i create an http-Object that accesses a https-page. This page requires username and password. I alwayg get the message “msxml3.dll:A certificate is required to complete client authentication”, when i start the script.
Does anyone have an idea what is wrong? See the following script. This script works with other urls and without the header “Authorization” correctly…
Dim strReturn ’ As String
Dim objHTTP ’ As MSXML.XMLHTTPRequest
If Len(strURL) Then
Set objHTTP = CreateObject("MSXML2.ServerXMLHTTP")
objHTTP.open strSendType, strURL,False
If strSendType = "POST" Then
objHTTP.setRequestHeader "Content-Type", "text/xml"
Dim base64 As New Base64()
objHTTP.setRequestHeader "Authorization", "Basic " + base64.encode("USERNAME:PASSWORD")
End If
objHTTP.send strPOSTString 'Get it.
strReturn =objHTTP.responseText
End If
Set objHTTP = Nothing