From 8e5de8c2fd06d41fc5d350e258c412c6f014fdd7 Mon Sep 17 00:00:00 2001 From: Vladimir Chernyshev Date: Tue, 11 Aug 2015 13:25:36 +0300 Subject: [PATCH] Update MultiCurl.php Add setDigestAuthentication --- src/Curl/MultiCurl.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/Curl/MultiCurl.php b/src/Curl/MultiCurl.php index e07d43c..e2dc3b8 100644 --- a/src/Curl/MultiCurl.php +++ b/src/Curl/MultiCurl.php @@ -310,6 +310,19 @@ class MultiCurl $this->setOpt(CURLOPT_USERPWD, $username . ':' . $password); } + /** + * Set Digets Authentication + * + * @access public + * @param $username + * @param $password + */ + public function setDigestAuthentication($username, $password = '') + { + $this->setOpt(CURLOPT_HTTPAUTH, CURLAUTH_DIGEST); + $this->setOpt(CURLOPT_USERPWD, $username . ':' . $password); + } + /** * Set Cookie *