#160 snarf plugin SSL tweak

open
nobody
None
5
2012-12-08
2005-02-16
No

To allow snarf to query SSL websites which are not
recognized by the local server's CA bundle, the "curl
-k" option needs to be set.

version: 1.9DR4
file: wikiplugin_snarf.php

mod: insert the curl_setopt line below:

$ch = curl_init( $url );

//allow curl to query sites with unknown CA certificates
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);

// use output buffering instead of returntransfer
-itmaybebuggy
ob_start();
curl_exec($ch);

Discussion