Litle fix, adding user agent on curl call, for access token exchenge script.

This commit is contained in:
Erik Amaru Ortiz
2014-01-15 19:56:44 -04:00
parent 50a590dc01
commit 2cf5f3e7f0

View File

@@ -28,6 +28,7 @@ curl_setopt($ch, CURLOPT_TIMEOUT, 30);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_USERAGENT,'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.13) Gecko/20080311 Firefox/2.0.0.13');
$data = @json_decode(curl_exec($ch));
curl_close($ch);