title: Setting CURL Parameters for fabpot/goutte Client
body: <p>I am working on a web crowler using goutte (fabpot/goutte). When I try to connect to an https site, it throws an error because the site is using a self signed certificate. I am trying to find the way to set the curl parameters to ignore the fact that the ssl certificate is self signed.
  Following the instructions in <a href="https://github.com/FriendsOfPHP/Goutte" rel="nofollow">https://github.com/FriendsOfPHP/Goutte</a> I tried the following code:</p>
  
  <pre><code>    $this-&gt;client = new Client();
      $this-&gt;client-&gt;getClient()-&gt;setDefaultOption('config/curl/'.CURLOPT_SSL_VERIFYPEER, false);
      $this-&gt;client-&gt;getClient()-&gt;setDefaultOption('config/curl/'.CURLOPT_CERTINFO, false);
  </code></pre>
  
  <p>Unfortunately when this code is executed the following error is thrown:</p>
  
  <p><em>Catchable fatal error: Argument 3 passed to GuzzleHttp\Client::request() must be of the type array, boolean given</em></p>
  
  <p>Can't figure out how to set up the parameters. How is the call expected? Any help will be appreciated.</p>