-
Notifications
You must be signed in to change notification settings - Fork 81
Using Proxy
mindon edited this page Jan 11, 2013
·
1 revision
Two steps to config proxy for the cURL(requires ssl support) request
- add proxy url in application/config/hybridauthlib.php
...
'base_url' => '/hauth/endpoint',
'proxy' => 'http://127.0.0.1:8080',
...
- add proxy option for Facebook cURL application/third_party/hybridauth/Hybrid/thirdparty/Facebook/base_facebook.php
public static $CURL_OPTS = array(
CURLOPT_CONNECTTIMEOUT => 10,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_TIMEOUT => 60,
CURLOPT_USERAGENT => 'facebook-php-3.2',
CURLOPT_PROXY => '127.0.0.1:8080'
);