title: guzzle3 add token Post Request
body: <p>I am working on a project using an old version of Guzzle (version 3), I'd like to add a token to the post request, can't find how to do it, I have looked on the doc there is no example for that , here is what I tried so far : </p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;?php
  $client = new Client();
  $client-&gt;setDefaultOption('headers', array(
      'Authorization' =&gt; ['Bearer', $token] 
  ));
  $req = $client-&gt;post($url);
  $client-&gt;send($req)-&gt;getBody(true);
  ?&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <pre><code>$client-&gt;setDefaultOption('auth', array(null, 'Bearer'.$token ))
  </code></pre>
  
  <p>I keep getting : 
   Guzzle\Http\Exception\ClientErrorResponseException: Client error response [status code] 400 [reason phrase] Bad Request [url]</p>