src/Curl/Curl.php
public function setCookie($key, $value)
    {
        $this->_cookies[$key] = $value;
        $this->setOpt(CURLOPT_COOKIE, http_build_query($this->_cookies, '', '; '));
        return $this;
    }
public function setCookie($key, $value)
    {
        $this->_cookies[$key] = $value;
        $this->setOpt(CURLOPT_COOKIE, http_build_query($this->_cookies, '', '; '));
        return $this;
    }
public function setCookie ( $ key , $ value ) { $ this -> _cookies [ $ key ] = $ value ; $ this -> setOpt ( CURLOPT_COOKIE , http_build_query ( $ this -> _cookies , '' , '; ' ) ) ; return $ this ; }
Set contents of HTTP Cookie header.

@param string $key   The name of the cookie
@param string $value The value for the provided cookie name
@return self
Set contents of HTTP Cookie header .