Open GoogleCodeExporter opened 9 years ago
Sometimes it works, but 99% of the times, it returns the 500 error. $token_url = 'https://accounts.google.com/o/oauth2/token'; $postdata = array( 'code' => $this->code, 'grant_type' => 'authorization_code', 'redirect_uri' => $this->url, 'client_id' => $this->appID, 'client_secret' => $this->appSecret, ); $ch = curl_init(); $curlParams = array ( CURLOPT_RETURNTRANSFER => true, CURLOPT_FOLLOWLOCATION => 0, CURLOPT_FAILONERROR => false, CURLOPT_SSL_VERIFYPEER => true, CURLOPT_VERBOSE => false, ); curl_setopt_array($ch, $curlParams); curl_setopt($ch, CURLOPT_URL, $token_url); curl_setopt($ch, CURLOPT_POSTFIELDS, $postdata); curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'POST'); $response = curl_exec($ch); curl_close($ch); Can you take a look into this matter?
Original issue reported on code.google.com by marianc...@gmail.com on 10 Dec 2013 at 10:05
marianc...@gmail.com
Original comment by fa...@google.com on 4 Oct 2014 at 1:21
fa...@google.com
Original issue reported on code.google.com by
marianc...@gmail.com
on 10 Dec 2013 at 10:05