PHP Curl not working


We have implemented a php curl function to fetch the API data from third party vendor. While executing the PHP script we are getting the following error:

/usr/local/lsws/lsphp74/bin/lsphp Insert-Monitor-Data.php
An error has occurred: Failed sending HTTP request.

We have checked the API URL, it’s working fine in another server and also through browser, it’s working fine, seems like the firewall system is blocking the third-party API call. So, it would be great if you could help us to resolve this issue at the earliest.

FYI: We have installed Imunify360 but it’s not active due to the license issue.

Current Version: 2.3
Build: 4Current Commit: 7d03fb6de16dfe9036aafc241e2c46e5bda64ef4
Latest Version: 2.3
Latest Build: 4Latest Commit: 7d03fb6de16dfe9036aafc241e2c46e5bda64ef4

I’ve attached the screenshot of cyberpanel security functions for your reference and understanding.

Thanks in advance!