Litle fix, adding user agent on curl call, for access token exchenge script.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user