Last Updated: February 25, 2016
·
829
· zaip

Digest Auth Zend Framework (Curl adapter)

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