Fixed it! It was indeed a selinux issue, which by default was preventing httpd to establish network connections.
Had to run the following command to allow it to do so
setsebool -P httpd_can_network_connect=1Once again, thanks a lot moritz. I thought it might have to do with security settings, just didn't know where to look!
In reply to Re^3: CGI script connecting via terminal but not via browser
by nkrgupta
in thread CGI script connecting via terminal but not via browser
by nkrgupta
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |