title: Digest authentication with Guzzle
body: <p>Trying to get to get JSON response from API that uses digest authentication. I am using Guzzle for the client. </p>
  
  <p>This is what I have so far and doesn't seem to work. Any suggestion?</p>
  
  <pre><code>&lt;?php
  require 'vendor/autoload.php';
  
  use GuzzleHttp\Client;
  
  $client = new Client([
  'base_uri' =&gt; 'https://10.1.1.1',
  'timeout'  =&gt; 2.0,
  ]);
  
  $client-&gt;setDefaultOption('verify', false);
  $client-&gt;request('POST', '/json', ['auth' =&gt; ['username', 'password', 'digest']]);
  </code></pre>