google app engine - Abraham\TwitterOAuth doesn't work on appengine PHP -


the following code on php appengine works locally, when deploy http://x.appengine.com there issue

code:

<?php       require "vendor/autoload.php";     use abraham\twitteroauth\twitteroauth;      $consumer_key = "[redacted]";     $consumer_secret = "[redacted]";     $oauth_callback = "http://$_server[http_host]$_server[http_port]";     $connection = new twitteroauth($consumer_key, $consumer_secret);             $request_token = $connection->oauth('oauth/request_token', array('oauth_callback' => $oauth_callback));      var_dump($request_token); ?> 

output:

array(1) { ["‹"]=> string(0) "" } array(1) { ["‹"]=> string(0) "" } 

any suggestions here? thank you.

looks issue curlopt_encoding => 'gzip', option - commenting out line in twitteroauth.php solved issue.


Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -

How to provide Authorization & Authentication using Asp.net, C#? -