# Error 443 in curl when calling API

**URL:** <https://devforum.zoom.us/t/error-443-in-curl-when-calling-api/11021>\
**Category:** API and Webhooks\
**Created:** [April 3, 2020, 7:32pm UTC](https://devforum.zoom.us/t/error-443-in-curl-when-calling-api/11021 "2020-04-03T19:32:40Z")\
**Posts on this page:** 19\
**Page:** 1

<div class="post-metadata">

**Author:** ![marcelocuadrado](https://avatars.discourse-cdn.com/v4/letter/m/df705f/32.png) [@marcelocuadrado](https://devforum.zoom.us/u/marcelocuadrado)\
**Post date:** [April 3, 2020, 7:32pm UTC](https://devforum.zoom.us/t/error-443-in-curl-when-calling-api/11021/1 "2020-04-03T19:32:40Z")

</div>

Good Morning.  
First all, If there is an error in my writing, please excuse me but English is not my native language.

I’m a bit new to using the zoom API and am having a hard time executing API calls from the production server.  
Locally I have no difficulties and I get a response. But when executing them from the server, yes.

Specifically, the error I receive from CURL is this:  
‘Unknown SSL protocol error in connection to [api.zoom.us:443](http://api.zoom.us:443)’

The code currently is like this:

$token = $this-\>getToken();

```
        $header = array(
            'authorization: Bearer '.$token,
            'content-type: application/json'
        );

        $options = array(
            CURLOPT_URL => $url,
            CURLOPT_RETURNTRANSFER => true,
            CURLOPT_ENCODING => "",
            CURLOPT_MAXREDIRS => 10,
            CURLOPT_TIMEOUT => 30,
            CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
            CURLOPT_CUSTOMREQUEST => "GET", 
            CURLOPT_HTTPHEADER => $header
        );

        $curl = curl_init();
        curl_setopt_array($curl, $options);
        $response = curl_exec($curl);
        $curl_error = curl_error($curl);

        curl_close($curl);

        if ($curl_error){
            $salida['flagerror'] = 1;
            $salida['errormsg'] = $curl_error;
        } else {
            $salida['flagerror'] = 0;
            $salida['errormsg'] = '';
        }
        $salida['response'] = $response;
        return $salida;

```

The endpoint I am trying to call is  
[https://api.zoom.us/v2/users](https://api.zoom.us/v2/users)

The token obtained is fine.  
I have consulted in the forums about the error 443 and among the answers they suggest setting the value CURL\_SSL\_VERSION\_SSLv3 in SSLVersion but the result is the same.

I am accessing the API using JWT App that I have previously created in my account following the steps of the QuickStart.

In $salida I save the response I get, and when examining the error it indicates the error I mentioned above.

If it is not too much trouble, I would like to know if you can guide me what could be the problem.  
Thanks a lot,

Best regards

---

<div class="post-metadata">

**Author:** ![bdeanindy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/bdeanindy/32/154_2.png) [@bdeanindy](https://devforum.zoom.us/u/bdeanindy)\
**Post date:** [April 3, 2020, 7:37pm UTC](https://devforum.zoom.us/t/error-443-in-curl-when-calling-api/11021/2 "2020-04-03T19:37:07Z")

</div>

Greetings @marcelocuadrado

Could you test making that same call from inside of Postman (to isolate if it is an environmental issue with your PHP server’s SSL or not)?

If it works in Postman, then it is an environmental issue.  
If it does not work in Postman, please share the request, complete with headers, here (hide/obfuscate the `access_token` from the “Authorization” header though please, and remove any other identifying data before posting).

---

<div class="post-metadata">

**Author:** ![marcelocuadrado](https://avatars.discourse-cdn.com/v4/letter/m/df705f/32.png) [@marcelocuadrado](https://devforum.zoom.us/u/marcelocuadrado)\
**Post date:** [April 3, 2020, 8:02pm UTC](https://devforum.zoom.us/t/error-443-in-curl-when-calling-api/11021/3 "2020-04-03T20:02:26Z")

</div>

Thanks for answer so soon.  
I have done a test from postman and I get a response:

 ![prueba_postman](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/c/c965bca620d4ace23f3cc3a153204c9d8dbdb09f.png)

What could it be? ☹

best regards

PS: this test with postman I have done both locally and from the production server.  
And in both I receive a reply.

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [April 3, 2020, 10:33pm UTC](https://devforum.zoom.us/t/error-443-in-curl-when-calling-api/11021/4 "2020-04-03T22:33:08Z")

</div>

Hey @marcelocuadrado,

Are you able to request other (non Zoom) APIs from your server?

I wonder if it is a firewall issue, or your CURL command has a bug?

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![marcelocuadrado](https://avatars.discourse-cdn.com/v4/letter/m/df705f/32.png) [@marcelocuadrado](https://devforum.zoom.us/u/marcelocuadrado)\
**Post date:** [April 3, 2020, 10:40pm UTC](https://devforum.zoom.us/t/error-443-in-curl-when-calling-api/11021/5 "2020-04-03T22:40:56Z")

</div>

Hi @tommy  
Short answer: Yes.  
On the server we have an automatic process that consumes other APIs and is operating without problems.

best regards,

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [April 3, 2020, 10:49pm UTC](https://devforum.zoom.us/t/error-443-in-curl-when-calling-api/11021/6 "2020-04-03T22:49:32Z")

</div>

Thanks @marcelocuadrado,

Are you using [TLS 1.2](https://www.google.com/search?q=tls+1.2&oq=tls+1.2&aqs=chrome..69i57j0l5.2743j0j7&sourceid=chrome&ie=UTF-8) on your production server?

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![marcelocuadrado](https://avatars.discourse-cdn.com/v4/letter/m/df705f/32.png) [@marcelocuadrado](https://devforum.zoom.us/u/marcelocuadrado)\
**Post date:** [April 6, 2020, 12:34pm UTC](https://devforum.zoom.us/t/error-443-in-curl-when-calling-api/11021/7 "2020-04-06T12:34:37Z")

</div>

Good morning, I apologize for the delay in responding.

EDIT:  
My coworker and I are reviewing the server settings in order to check the status of the tls and ssl connection.

Best regards,

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [April 6, 2020, 11:23pm UTC](https://devforum.zoom.us/t/error-443-in-curl-when-calling-api/11021/8 "2020-04-06T23:23:10Z")

</div>

Thanks, let us know what you find! 🙂

-Tommy

---

<div class="post-metadata">

**Author:** ![rizki.troy](https://avatars.discourse-cdn.com/v4/letter/r/f1d935/32.png) [@rizki.troy](https://devforum.zoom.us/u/rizki.troy)\
**Post date:** [April 15, 2020, 2:58am UTC](https://devforum.zoom.us/t/error-443-in-curl-when-calling-api/11021/9 "2020-04-15T02:58:24Z")

</div>

hay marcelo, i am getting error same , how you fix that error??

thanks

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [April 15, 2020, 5:26pm UTC](https://devforum.zoom.us/t/error-443-in-curl-when-calling-api/11021/10 "2020-04-15T17:26:34Z")

</div>

Hey @rizki.troy,

Can you help isolate the issue by following my above posts?

> [@Error 443 in curl when calling API](https://devforum.zoom.us/t/error-443-in-curl-when-calling-api/11021/4):
>
> Hey @marcelocuadrado, Are you able to request other (non Zoom) APIs from your server? I wonder if it is a firewall issue, or your CURL command has a bug? Thanks, Tommy

> [@Error 443 in curl when calling API](https://devforum.zoom.us/t/error-443-in-curl-when-calling-api/11021/6):
>
> Thanks @marcelocuadrado, Are you using [TLS 1.2](https://www.google.com/search?q=tls+1.2&oq=tls+1.2&aqs=chrome..69i57j0l5.2743j0j7&sourceid=chrome&ie=UTF-8) on your production server? Thanks, Tommy

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![rizki.troy](https://avatars.discourse-cdn.com/v4/letter/r/f1d935/32.png) [@rizki.troy](https://devforum.zoom.us/u/rizki.troy)\
**Post date:** [April 16, 2020, 12:43am UTC](https://devforum.zoom.us/t/error-443-in-curl-when-calling-api/11021/11 "2020-04-16T00:43:07Z")

</div>

hy @tommy

I can access some APIs but when trying to access zoom API . I get an error “443”

even though I already made a new connection tls 1.2 in windows

Thanks your help

Rizki

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [April 16, 2020, 6:44am UTC](https://devforum.zoom.us/t/error-443-in-curl-when-calling-api/11021/12 "2020-04-16T06:44:36Z")

</div>

Hey @rizki.troy,

Can you post your request url, body / headers, and response body / errors so I can reproduce the issue?

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![rizki.troy](https://avatars.discourse-cdn.com/v4/letter/r/f1d935/32.png) [@rizki.troy](https://devforum.zoom.us/u/rizki.troy)\
**Post date:** [April 16, 2020, 7:04am UTC](https://devforum.zoom.us/t/error-443-in-curl-when-calling-api/11021/13 "2020-04-16T07:04:26Z")

</div>

Hy @tommy

 ![zuumcurl](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/f/f753968a7a40d28f500ca150a42291f0613bc240.png)

thats my code  
thanks

Rizki

---

<div class="post-metadata">

**Author:** ![marcelocuadrado](https://avatars.discourse-cdn.com/v4/letter/m/df705f/32.png) [@marcelocuadrado](https://devforum.zoom.us/u/marcelocuadrado)\
**Post date:** [April 16, 2020, 11:34am UTC](https://devforum.zoom.us/t/error-443-in-curl-when-calling-api/11021/14 "2020-04-16T11:34:10Z")

</div>

Good Morning,  
Please excuse the delay in responding. We were busy.  
We have reviewed the server, and we found that something is blocking port 443. As soon as we try to enable the port, it immediately blocks again.  
We have not been able to determine which application will be affecting there. Unfortunately it is a server of our client that we cannot touch much.  
As times are pressing, we have chosen to move the system we are developing to another server that we can control.  
On our own servers the system operates without problems. We know that this does not solve the problem itself, but we had to move forward with the project in some way.

Best Regards,

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [April 17, 2020, 6:20pm UTC](https://devforum.zoom.us/t/error-443-in-curl-when-calling-api/11021/15 "2020-04-17T18:20:37Z")

</div>

Hey @rizki.troy,

Which API endpoint are you calling??

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [April 17, 2020, 6:21pm UTC](https://devforum.zoom.us/t/error-443-in-curl-when-calling-api/11021/16 "2020-04-17T18:21:53Z")

</div>

Hey @marcelocuadrado,

Thanks for sharing an update! Glad to hear unblocking / using a server that does not block 443 fixes the issue.

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![rizki.troy](https://avatars.discourse-cdn.com/v4/letter/r/f1d935/32.png) [@rizki.troy](https://devforum.zoom.us/u/rizki.troy)\
**Post date:** [April 22, 2020, 1:01am UTC](https://devforum.zoom.us/t/error-443-in-curl-when-calling-api/11021/17 "2020-04-22T01:01:35Z")

</div>

Hey @tommy  
Sorry too late response

I’m trying user with url  
[https://api.zoom.us/v2/users?status=active&page\_size=30&page\_number=1](https://api.zoom.us/v2/users?status=active&page_size=30&page_number=1)

and

i’m trying to create meeting with url  
[https://api.zoom.us/v2/users?status=active&page\_size=30&page\_number=1](https://api.zoom.us/v2/users?status=active&page_size=30&page_number=1)

to now i’am get error same, im already to set TLS 1.2 and 3.o

thanks

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [April 22, 2020, 10:08pm UTC](https://devforum.zoom.us/t/error-443-in-curl-when-calling-api/11021/18 "2020-04-22T22:08:01Z")

</div>

Hey @rizki.troy,

Have you tried what @marcelocuadrado suggested?

> [@Error 443 in curl when calling API](https://devforum.zoom.us/t/error-443-in-curl-when-calling-api/11021/14):
>
> Good Morning, Please excuse the delay in responding. We were busy. We have reviewed the server, and we found that something is blocking port 443. As soon as we try to enable the port, it immediately blocks again. We have not been able to determine which application will be affecting there. Unfortunately it is a server of our client that we cannot touch much. As times are pressing, we have chosen to move the system we are developing to another server that we can control. On our own servers t…

Thanks,  
Tommy

---

<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:** [August 21, 2020, 8:53pm UTC](https://devforum.zoom.us/t/error-443-in-curl-when-calling-api/11021/19 "2020-08-21T20:53:29Z")

</div>

Closed on August 21, 2020, 8:53pm UTC


