kriswallsmith/Buzz — pull request #153 by peterfrankjohnson (2014-06-13 01:02:33+00:00)
Title:  Added Auth Digest support #152 

Added two new classes which extend the Client class by wrapping it so that an Authentication header is sent if necessary.

This was created as an Adapter because the Listener class was missing the functionality required to resend a request if needed and modifying the Listener would have been incorrect.

Notes:
1. qop=auth-int currently does not work, I'm not sure if the problem lies with the request->getContent(). I will have to study the HTTP RFCs to see what the entity-body is defined as exactly.
2. This adapter does not set any Cookies if they are received (neither does the normal client). I tested this on httpbin.org and it did not work because the cookie was missing.

Here is an example to test these classes:
```
setUsername('user1');
$adapter->setPassword('user1');

$browser = new Browser($adapter);

$response = $browser->get('http://test.webdav.org/auth-digest/');

echo $response;