title: Why is my Authorization Header giving me a 401 in Guzzle?
body: <p>I am getting a 401 on Guzzle 4.2 and the same setup works on Postman. Code below.</p>
  
  <pre><code>// Create a client with a base URL
      $client = new GuzzleHttp\Client(['base_url' =&gt; 'cloud.feedly.com/v3/streams/contents?streamId=user/user-id/category/global.all&amp;count=1']);
  
      // Send a request to https://github.com/notifications
      $response = $client-&gt;get();
  
      //Auth
     $response-&gt;addHeader('Authorization', "auth-code");
  
  
      //send
      $r = $response-&gt;send();
  
     dd($r-&gt;json());
  </code></pre>
  
  <p>The error is:</p>
  
  <pre><code>GuzzleHttp \ Exception \ ClientException (401) 
  Client error response [url] cloud.feedly.com/v3/streams/contents?streamId=user/user-id/global.all&amp;count=1 [status code] 401 [reason phrase] Unauthorized
  </code></pre>