title: Set proxy in Guzzle
body: <p>I have a problem with set proxy in guzzle that a blank page was shown while with curl everything works perfect. The code that I used in guzzle and curl came below.
  What is wrong with this code:
  Guzzle: </p>
  
  <pre><code>use GuzzleHttp\Client;
  use GuzzleHttp\Exception\RequestException;
  
  require_once "vendor/autoload.php";
  
  try {
    $client = new Client();
    $request = new \GuzzleHttp\Psr7\Request('GET', 'http://httpbin.org');
    $response = $client-&gt;send($request, [
        'timeout'  =&gt; 30,
        'curl'  =&gt; [
            'CURLOPT_PROXY' =&gt; '*.*.*.*',
            'CURLOPT_PROXYPORT' =&gt; *,
            'CURLOPT_PROXYUSERPWD' =&gt; '*:*',
        ],
  
    ]);
    echo '&lt;/pre&gt;';
    echo($response-&gt;getBody());
    exit;
  } catch (RequestException $e) {
    echo $e-&gt;getRequest();
    if ($e-&gt;hasResponse()) {
        echo $e-&gt;getResponse();
    }
  }
  </code></pre>
  
  <p>And The code with CURL:</p>
  
  <pre><code>$url = 'http://httpbin.org';
  $ch = curl_init($url);
  curl_setopt($ch,CURLOPT_USERAGENT,'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.13) Gecko/20080311 Firefox/2.0.0.13');
  curl_setopt($ch, CURLOPT_PROXY, '*.*.*.*');
  curl_setopt($ch, CURLOPT_PROXYPORT, *);
  curl_setopt($ch, CURLOPT_PROXYUSERPWD, '*:*');
  curl_setopt($ch, CURLOPT_HEADER, false);
  curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
  curl_setopt($ch, CURLOPT_FOLLOWLOCATION, false);
  curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
  $page = curl_exec($ch);
  echo $page;
  </code></pre>
  
  <p>Thanks.</p>