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 *