How to set referer header in Guzzle
<p>I'm trying to set the referer header on a guzzle request, but when I analyze the request Chrome developer tools, the referer header is not in the list of request headers. This is how I set the header:</p>

<pre><code> $headers = ['referer' =&gt; 'test.referer.com'];
    $guzzle = new Client([
        'defaults' =&gt; ['headers' =&gt; $headers]
    ]);
    $result = $guzzle-&gt;get('http://google.com');
    return $result;
</code></pre>

<p>I have tried multiple other solutions, but it's still not working. What am I missing?</p>