I am trying to send requests to Zoom API via a HTTP request. When testing on my local machine it works perfectly but when I try it on our production server I get the following error:
msxml6.dll error ‘80072efe’ The connection with the server was terminated abnormally.
We use Cloudflare for security with our website, does anyone know what the resolution here maybe? The server is running on Windows Server 2008 R2 using IIS 7.5.
Here is an example of my code:
Function getWebinarsRegistrants(webinarId)
'Get access token
access_token = getJWTToken()
postURL = "https://api.zoom.us/v2/webinars/" & webinarId & "/registrants"
parmToSend = "{""status"":""approved"",""page_size"":""30"",""page_number"":""1""}"
Set ServerXmlHttp = Server.CreateObject("MSXML2.ServerXMLHTTP.6.0")
ServerXmlHttp.open "GET", postURL
ServerXmlHttp.setRequestHeader "Accept", "application/json"
ServerXmlHttp.setRequestHeader "Content-Type", "application/json"
ServerXmlHttp.setRequestHeader "Authorization", "Bearer " & access_token
ServerXmlHttp.send parmToSend
jsonResponse = ServerXmlHttp.responseText
if ServerXmlHttp.status=200 then
response.write("Success")
response.write("<pre>" & server.HTMLEncode(jsonResponse) & "</pre>")
else
response.write("Response Status: " & ServerXmlHttp.status)
response.write(server.HTMLEncode(jsonResponse))
end if
Set ServerXmlHttp = Nothing
End Function