# Issue with connecting to Zoom API via Cloudflare

**URL:** <https://devforum.zoom.us/t/issue-with-connecting-to-zoom-api-via-cloudflare/29703>\
**Category:** API and Webhooks\
**Created:** [September 9, 2020, 10:49pm UTC](https://devforum.zoom.us/t/issue-with-connecting-to-zoom-api-via-cloudflare/29703 "2020-09-09T22:49:14Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![GBCA\_Education](https://avatars.discourse-cdn.com/v4/letter/g/9e8a1a/32.png) [@GBCA\_Education](https://devforum.zoom.us/u/GBCA_Education)\
**Post date:** [September 9, 2020, 10:49pm UTC](https://devforum.zoom.us/t/issue-with-connecting-to-zoom-api-via-cloudflare/29703/1 "2020-09-09T22:49:14Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![DeveloperBot](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/developerbot/32/12632_2.png) [@DeveloperBot](https://devforum.zoom.us/u/DeveloperBot)\
**Post date:** [September 9, 2020, 10:49pm UTC](https://devforum.zoom.us/t/issue-with-connecting-to-zoom-api-via-cloudflare/29703/2 "2020-09-09T22:49:31Z")

</div>

Hey @GBCA_Education

Thanks for posting on the Zoom Devforum! I am still learning, but I will try my best to help answer your question. 🙂

Checkout this related thread that may have the answer you are looking for:

> [@Connect to my API](https://devforum.zoom.us/t/-/1828):
>
> so we have an API to connect to zoom, so that when we want to log in to zoom using the password that we have prepared, when we change the password in our API, the zoom will change automatically

If this thread did not help, please let us know by replying back here and someone from the Developer Relations team will get back to you shortly.

Thanks,  
DeveloperBot

---

<div class="post-metadata">

**Author:** ![GBCA\_Education](https://avatars.discourse-cdn.com/v4/letter/g/9e8a1a/32.png) [@GBCA\_Education](https://devforum.zoom.us/u/GBCA_Education)\
**Post date:** [September 11, 2020, 5:06am UTC](https://devforum.zoom.us/t/issue-with-connecting-to-zoom-api-via-cloudflare/29703/3 "2020-09-11T05:06:00Z")

</div>

I found the cause of the issue. It wasn’t CloudFlare, it was the server object I was using in my function.

I changed the following line from this:  
`Set ServerXmlHttp = Server.CreateObject("MSXML2.ServerXMLHTTP.6.0")`

to this:  
`Set ServerXmlHttp = Server.CreateObject("MSXML2.XMLHTTP.6.0")`

---

<div class="post-metadata">

**Author:** ![will.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/will.zoom/32/14417_2.png) [@will.zoom](https://devforum.zoom.us/u/will.zoom)\
**Post date:** [September 14, 2020, 8:02pm UTC](https://devforum.zoom.us/t/issue-with-connecting-to-zoom-api-via-cloudflare/29703/4 "2020-09-14T20:02:02Z")

</div>

@GBCA_Education Thanks for letting us know, and glad you figured it out!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/1/614bdd549b610bbaa46ff934617683a02bdaa03c.png) [@system](https://devforum.zoom.us/u/system)\
**Post date:** [October 15, 2020, 6:02am UTC](https://devforum.zoom.us/t/issue-with-connecting-to-zoom-api-via-cloudflare/29703/5 "2020-10-15T06:02:07Z")

</div>

Closed on October 15, 2020, 6:02am UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
