summaryrefslogtreecommitdiff
path: root/it_url.class
diff options
context:
space:
mode:
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
];
}