diff --git a/src/Qiniu/Http/RequestOptions.php b/src/Qiniu/Http/RequestOptions.php index be0c6d5e..d1c55108 100644 --- a/src/Qiniu/Http/RequestOptions.php +++ b/src/Qiniu/Http/RequestOptions.php @@ -99,6 +99,11 @@ public function getCurlOpt() if ($this->proxy_user_password != null) { $result[CURLOPT_PROXYUSERPWD] = $this->proxy_user_password; } + + // https + $result[CURLOPT_SSL_VERIFYPEER] = false; + $result[CURLOPT_SSL_VERIFYHOST] = false; + return $result; } }