public function setDigestAuthentication($username, $password = '')
    {
        $this->setOpt(CURLOPT_HTTPAUTH, CURLAUTH_DIGEST);
        $this->setOpt(CURLOPT_USERPWD, $username . ':' . $password);
    }
public function setDigestAuthentication($username, $password = '')
    {
        $this->setOpt(CURLOPT_HTTPAUTH, CURLAUTH_DIGEST);
        $this->setOpt(CURLOPT_USERPWD, $username . ':' . $password);
    }
public function setDigestAuthentication ( $ username , $ password = '' ) { $ this -> setOpt ( CURLOPT_HTTPAUTH , CURLAUTH_DIGEST ) ; $ this -> setOpt ( CURLOPT_USERPWD , $ username . ':' . $ password ) ; }
Set Digest Authentication

@access public
@param  $username
@param  $password
Set Digest Authentication