title: guzzle exception with .localhost domains
body: <p>On my local machine I have two services (in laravel 5): userBox and mailBox. mailBox use userBox during login using library <code>"guzzlehttp/guzzle": "~6.0"</code> and restful API (mailBox send user credential and get info do user exists and have proper access). After <a href="https://stackoverflow.com/q/47768289/860099">.dev subdomains stopps working</a> I decide to use <a href="https://stackoverflow.com/a/47874289/860099">.localhost</a> subdomain so i have:</p>
  
  <pre><code>userbox.localhost
  mailbox.localhost
  </code></pre>
  
  <p>I make changes in <code>/etc/apache2/extra/httpd-vhosts.conf</code> but unfortunatley I get error:</p>
  
  <blockquote>
    <p>cURL error 6: Could not resolve host: userbox.localhost (see
    <a href="http://curl.haxx.se/libcurl/c/libcurl-errors.html" rel="nofollow noreferrer">http://curl.haxx.se/libcurl/c/libcurl-errors.html</a>)</p>
  </blockquote>
  
  <p>So i look on internet and found solution: we just need add new subdomains to <code>/etc/hosts</code>. After that old error was solved but new one appears:</p>
  
  <blockquote>
    <p>ClientException in RequestException.php line 113: Client error: <code>GET
    http://userbox.localhost/api/v1/users/auth?username=test_manager%40example.com&amp;password=xxxxxxx&amp;MAILBOX_TOKEN=yyyyyyyyyyyyyyyyyyyyyyyyyyy</code>
    resulted in a <code>404 Not Found</code> response:   404 Not Found
     Not Found (truncated...)</p>
  </blockquote>
  
  <p>And I don't know how to solve it (link GET <a href="http://userbox" rel="nofollow noreferrer">http://userbox</a>... from aboce exception works in browser) - <strong>hovewer when I change <code>userbox.localhost</code> to <code>userbox.ddd</code> then everything works fine.</strong> </p>
  
  <p><strong>Question:</strong> Do you have any idea how why <code>.localhost</code> subdomains not work with <code>guzzle-curl</code> and what to do to make it works?</p>