https //accounts.google.com/o/oauth2/auth 400 bad request in Google_CurlIO.php

291 views
Skip to first unread message

jyoti prakash sahoo

unread,
Nov 11, 2013, 4:30:05 AM11/11/13
to google-api...@googlegroups.com
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/auth

I 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.
Reply all
Reply to author
Forward
0 new messages