This problem seems to have been discussed in the past everywhere on google and here, but I have yet to find a solution.
A very simple fopen gives me a
Check your phpinfo output - is http present under Registered PHP Streams?
phpinfo
http
Registered PHP Streams