From 0e7b57ca48120f75b8bfed01072951d6b0c76542 Mon Sep 17 00:00:00 2001 From: Nathan Gass Date: Tue, 19 Dec 2017 16:44:13 +0100 Subject: remove curlinfo_header_out option (conlicts with curlopt_verbose and possibly is expensive), add debug parameter curlverbose --- it_url.class | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/it_url.class b/it_url.class index 20dd171..69b13aa 100644 --- a/it_url.class +++ b/it_url.class @@ -198,6 +198,9 @@ static function curl_opts($p=array()) if ($p['pass'] || $p['user']) $add += [ CURLOPT_HTTPAUTH => CURLAUTH_BASIC, CURLOPT_USERPWD => $p['user'] . ':' . $p['pass'] ]; + if ($p['verbose'] || EDC('curlverbose')) + $add += [ CURLOPT_VERBOSE => true ]; + return $add + [ CURLOPT_HEADER => false, CURLOPT_RETURNTRANSFER => true, @@ -213,9 +216,7 @@ static function curl_opts($p=array()) CURLOPT_CAPATH => '/etc/ssl/certs/', CURLOPT_SSL_VERIFYPEER => !$p['allow_insecure_ssl'], - CURLOPT_SSL_VERIFYHOST => $p['allow_insecure_ssl'] ? 0 : 2, - - CURLINFO_HEADER_OUT => 1, + CURLOPT_SSL_VERIFYHOST => $p['allow_insecure_ssl'] ? 0 : 2 ]; } -- cgit v1.2.3