Last Updated: February 25, 2016
·
833
· zaip

Digest Auth Zend Framework (Curl adapter)

$adapter = new ZendHttpClientAdapterCurl();
$adapter->setConfig(array(
'curloptions' => array(
CURLOPTHTTPAUTH => CURLAUTHDIGEST,
CURLOPT_USERPWD => "user:password"
)
));
$this->setAdapter($adapter);