CentOS with SELinux enabled by default will block any http proxy connection. So you have to enable this permission.
Temporary enable
$ /usr/sbin/setsebool httpd_can_network_connect 1
Permanent enable
$ /usr/sbin/setsebool -P httpd_can_network_connect 1