that should fix it.
This commit is contained in:
parent
10f1867521
commit
235b033560
@ -47,7 +47,7 @@ function z_fetch_url($url, $binary = false, $redirects = 0, $opts = array()) {
|
|||||||
if(! $ciphers)
|
if(! $ciphers)
|
||||||
$ciphers = 'ALL:!eNULL';
|
$ciphers = 'ALL:!eNULL';
|
||||||
|
|
||||||
// @curl_setopt($ch, CURLOPT_SSL_CIPHER_LIST, $ciphers);
|
@curl_setopt($ch, CURLOPT_SSL_CIPHER_LIST, $ciphers);
|
||||||
|
|
||||||
if (x($opts,'accept_content')){
|
if (x($opts,'accept_content')){
|
||||||
@curl_setopt($ch,CURLOPT_HTTPHEADER, array (
|
@curl_setopt($ch,CURLOPT_HTTPHEADER, array (
|
||||||
@ -155,7 +155,7 @@ function z_post_url($url,$params, $redirects = 0, $opts = array()) {
|
|||||||
if(! $ciphers)
|
if(! $ciphers)
|
||||||
$ciphers = 'ALL:!eNULL';
|
$ciphers = 'ALL:!eNULL';
|
||||||
|
|
||||||
// @curl_setopt($ch, CURLOPT_SSL_CIPHER_LIST, Z_CURL_CIPHERS);
|
@curl_setopt($ch, CURLOPT_SSL_CIPHER_LIST, $ciphers);
|
||||||
|
|
||||||
|
|
||||||
if (x($opts,'accept_content')){
|
if (x($opts,'accept_content')){
|
||||||
|
@ -62,6 +62,11 @@ function poco_load($xchan = '',$url = null) {
|
|||||||
|
|
||||||
$j = json_decode($s['body'],true);
|
$j = json_decode($s['body'],true);
|
||||||
|
|
||||||
|
if(! $j) {
|
||||||
|
logger('poco_load: unable to json_decode returned data.');
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
logger('poco_load: ' . print_r($j,true),LOGGER_DATA);
|
logger('poco_load: ' . print_r($j,true),LOGGER_DATA);
|
||||||
|
|
||||||
if($xchan) {
|
if($xchan) {
|
||||||
|
Reference in New Issue
Block a user