From 758917bd0bcef4bad7c9d2a47b1e0460cefa9b5c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Thu, 21 May 2020 16:13:39 +0800 Subject: [PATCH] add clear --- wchat/common/HttpClient.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/wchat/common/HttpClient.php b/wchat/common/HttpClient.php index e5a828a..8e97896 100644 --- a/wchat/common/HttpClient.php +++ b/wchat/common/HttpClient.php @@ -633,6 +633,11 @@ class HttpClient curl_setopt($ch, CURLOPT_USERAGENT, $this->agent); } + if (!empty($this->ssl_cert_file)) { + var_dump($this->getSslCertFile()); + var_dump($this->getSslKeyFile()); + } + curl_setopt($ch, CURLOPT_SSLCERT, $this->getSslCertFile()); curl_setopt($ch, CURLOPT_SSLKEY, $this->getSslKeyFile()); curl_setopt($ch, CURLOPT_NOBODY, FALSE);