why is this curl function getting permission denied why is this curl function getting permission denied curl curl

why is this curl function getting permission denied


As it turns out, the issue was an SELINUX policy.

by running the following, it will fix the issue

#setsebool -P httpd_can_network_connect=1