Posted By

ialexs on 02/23/11


Tagged

facebook


Versions (?)

turn off CURL-ing SSL in facebook php-sdk


 / Published in: PHP
 

  1. public static $CURL_OPTS = array(
  2. /**
  3.   * increase the timeout
  4.   * if experiencing badd hosting connections
  5.   **/
  6. CURLOPT_CONNECTTIMEOUT => 110,
  7. CURLOPT_RETURNTRANSFER => true,
  8. CURLOPT_TIMEOUT => 160,
  9. CURLOPT_USERAGENT => 'facebook-php-2.0',
  10. /**
  11. * add these to turn off the SSL
  12. **/
  13. CURLOPT_SSL_VERIFYPEER => false,
  14. CURLOPT_SSL_VERIFYHOST => false,

Report this snippet  

You need to login to post a comment.