From 0cbd104cc306c0148325c35910b3f0b50e0b99e1 Mon Sep 17 00:00:00 2001 From: Christian Helbling Date: Mon, 14 Jan 2019 14:42:03 +0100 Subject: add options to use client certificates in it_url::get --- it_url.class | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'it_url.class') diff --git a/it_url.class b/it_url.class index 531af8b..db09ea0 100644 --- a/it_url.class +++ b/it_url.class @@ -209,6 +209,12 @@ static function curl_opts($p=array()) ]; } + if ($p['sslkey']) + $add += [CURLOPT_SSLKEY => $p['sslkey']]; + + if ($p['sslcert']) + $add += [CURLOPT_SSLCERT => $p['sslcert']]; + if ($p['verbose'] || EDC('curlverbose')) $add += [ CURLOPT_VERBOSE => true ]; -- cgit v1.2.3