summaryrefslogtreecommitdiff
path: root/it_url.class
diff options
context:
space:
mode:
authorNathan Gass2017-12-19 16:44:13 +0100
committerNathan Gass2017-12-19 16:45:10 +0100
commit0e7b57ca48120f75b8bfed01072951d6b0c76542 (patch)
tree57c1d0aecd22d83304753515355d1db18ccf3875 /it_url.class
parent87152ed9fb94135689b18967f00531d2a0d0ac1a (diff)
downloaditools-0e7b57ca48120f75b8bfed01072951d6b0c76542.tar.gz
itools-0e7b57ca48120f75b8bfed01072951d6b0c76542.tar.bz2
itools-0e7b57ca48120f75b8bfed01072951d6b0c76542.zip
remove curlinfo_header_out option (conlicts with curlopt_verbose and possibly is expensive), add debug parameter curlverbose
Diffstat (limited to 'it_url.class')
-rw-r--r--it_url.class7
1 files 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
];
}