Failed to connect to www.googleapis.com port 443: Network unreachable

前端 未结 5 1178
被撕碎了的回忆
被撕碎了的回忆 2020-12-18 11:45

I\'m trying to implement google sign-in in my website that is written in Symfony2 using Google Client API. I followed the instructions here, but when I call $client->authent

5条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-18 12:19

    If your network under proxy. You should set the proxy url and port

    curl_setopt($ch, CURLOPT_PROXY, "http://url.com"); //your proxy url
    curl_setopt($ch, CURLOPT_PROXYPORT, "80"); // your proxy port number
    

    This is solves my problem

提交回复
热议问题