title: guzzle http return 504 Gateway Time-out
body: <p>I try to communicate with api and it always return me 504 Gateway Time-out. I try 'get' http request in jQuery in ajax and it works fine. Here is my code:</p>
  
  <pre><code>$.ajax({
      type:'GET',
      url: 'http://example.com',
      success:function(data){
          console.log(data);
      }
  });
  </code></pre>
  
  <p>However, the problem is when I use to call this 'get' http request from php by guzzle. I try something like this:</p>
  
  <pre><code>$this-&gt;client = new Client();
  
  $result = $this-&gt;client-&gt;request('GET', 'http://example.com');
  
  return $result-&gt;getStatusCode();
  </code></pre>
  
  <p>This doesn't work.It always return me 504 Gateway Time-out. Do you know what wrong happened?
  When i type url for example '<a href="http://google.com" rel="nofollow noreferrer">http://google.com</a>' instead of '<a href="http://example.com" rel="nofollow noreferrer">http://example.com</a> it works fine by jQuery and also by Guzzle php.</p>