Hi All,
Need an urgent help. I am getting http error code 400 while requesting for access token to https //
accounts.google.com/o/oauth2/authI have set proxy using
curl_setopt($ch, CURLOPT_PROXY, $proxy);
Uncaught exception 'Google_IOException' with message 'HTTP Error: (0)
Received HTTP code 400 from proxy after CONNECT' in
/var/www/html/google-api-php-
client/src/io/Google_CurlIO.php:136
Stack trace:
#0 /var/www/html/google-api-php-client/src/auth/Google_OAuth2.php(104):
Google_CurlIO->makeRequest(Object(Google_HttpRequest))
#1 /var/www/html/google-api-php-client/src/Google_Client.php(127):
Google_OAuth2->authenticate(Array, '4/qglpxAMtqV8IP...')
#2 /var/www/html/google-api-php-client/examples/calendar/simple.php(28):
Google_Client->authenticate('4/qglpxAMtqV8IP...')
#3 {main}
thrown in /var/www/html/google-api-php-client/src/io/Google_CurlIO.php
on line 136
Any possible reason,Pls help.