Update MultiCurl.php

Add setDigestAuthentication
This commit is contained in:
Vladimir Chernyshev
2015-08-11 13:25:36 +03:00
parent e3b09c6654
commit 8e5de8c2fd
+13
View File
@@ -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
*