I am using MAMP Pro 1.9.4 on Mac OSX In phpinfo() I see curl is enabled
phpinfo()
cURL support enabled cURL Information 7.20.0 Age 3 Features
It's not about proxy, it's about how to use googleapis.
Add CURLOPT_SSL_ on your code and set them into false
CURLOPT_SSL_ on
false
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);