title: How can I send Cookies with Guzzlehttp/guzzle 6?
body: <p>I need to send a request with custom cookies.</p>
  
  <p>I have tried to set cookieJar like this:</p>
  
  <pre><code>$cookieJar = CookieJar::fromArray(array($cookieName=&gt;$cookieStr),
                      'api.mobra.in');
  
                  $res = $this-&gt;guzzleClient-&gt;request($requestMethod, $url,
                      [
                          'cookies' =&gt; [$cookieJar]
                      ]
                  );
  </code></pre>
  
  <p>But it is getting an error </p>
  
  <blockquote>
    <p>cookies must be an instance of GuzzleHttp\Cookie\CookieJarInterface</p>
  </blockquote>
  
  <p>Please suggest example or explain in details.
  I gone through documents but they have not mentioned in detail.</p>
  
  <p>Thank you!</p>