From 20d802d90e0986a07b585aac1d1193ae18ba5352 Mon Sep 17 00:00:00 2001 From: Freerk Kalsbeek Date: Wed, 3 Jun 2015 14:27:59 +0200 Subject: [PATCH] Added options for CURLOPT_TIMEOUT and CURLOPT_SSL_VERIFY_HOST --- src/BeSimple/SoapClient/Curl.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/BeSimple/SoapClient/Curl.php b/src/BeSimple/SoapClient/Curl.php index e777fc8f..244f83d7 100644 --- a/src/BeSimple/SoapClient/Curl.php +++ b/src/BeSimple/SoapClient/Curl.php @@ -80,7 +80,12 @@ public function __construct(array $options = array(), $followLocationMaxRedirect if (isset($options['connection_timeout'])) { curl_setopt($this->ch, CURLOPT_CONNECTTIMEOUT, $options['connection_timeout']); } - + if (isset($options['timeout'])) { + curl_setopt($this->ch, CURLOPT_TIMEOUT, $options['timeout']); + } + if (isset($options['ssl_verifyhost'])){ + curl_setopt($this->ch, CURLOPT_SSL_VERIFYHOST, $options['ssl_verifyhost']); + } if (isset($options['proxy_host'])) { if (false !== $options['proxy_host']) { $proxyHost = $options['proxy_host'].(isset($options['proxy_port']) ? $options['proxy_port'] : 8080);