As it turns out, this was an selinux issue, rather than a PHP issue. The web server was not allowed to make external HTTP requests. Once I enabled that with "setsebool -P httpd_can_network_connect on", I was able to get requests to go through.
Thank you to everyone who tried to help.