Laravel guzzle cURL error 6: Could not resolve host: http (see http://curl.haxx.se/libcurl/c/libcurl-errors.html)
<p>On my development my code is working properly. When I push to my server it become error.</p>

<p><code>cURL error 6: Could not resolve host: http (see http://curl.haxx.se/libcurl/c/libcurl-errors.html)</code></p>

<p>Here is my code:</p>

<pre><code>use GuzzleHttp\Client;

try {
    $client = new Client();
    $client-&gt;request('POST', env('API_DOMAIN') . '/v1/user/auth/verified_email',
        ['headers' =&gt; ['Authorization' =&gt; 'cm9vcGlhLnVzZXIud2ViOkY0RVN3VXJheS1qVVB1a18='],
         'query'   =&gt; ['token' =&gt; $key]]);

    return redirect('/')-&gt;with('status', 'Your email has been verified. Thanks!')-&gt;with('statusType', 'success');
} catch (ConnectException $e) {
    Log::error($e);
    return redirect('/');
}
</code></pre>

<p>Any solution? </p>

<p>Thanks</p>