Facebook PHP SDK Curl over proxy

proxxx

New Member
Im trying to setup php sdk. SDK is using Curl to make request. But i have to do this by proxy.My OPTS:\[code\] public static $CURL_OPTS = array( CURLOPT_CONNECTTIMEOUT => 10, CURLOPT_RETURNTRANSFER => true, CURLOPT_TIMEOUT => 60, CURLOPT_USERAGENT => 'facebook-php-2.0', CURLOPT_PROXYPORT => '8080', CURLOPT_PROXY => 'proxy', );curl_setopt_array($ch, $opts);print "<pre>"; print_r($opts); print "</pre>";\[/code\]this is printing: \[code\]Array( [78] => 10 [19913] => 1 [13] => 60 [10018] => facebook-php-2.0 [59] => 8080 [10004] => proxy [10015] => method=GET&access_token=xxxxxxxxxxxxxxxxxx [10002] => https://graph.facebook.com/naitik [10023] => Array ( [0] => Expect: ))\[/code\]and print print_r(curl_error($ch)); returning: \[code\]Received HTTP code 403 from proxy after CONNECT\[/code\]What opptions should be used, to get it work?
 
Back
Top