public function addCookie($name, $value = null)
    {
        if (is_array($name)) {
            $this->cookies = $name + $this->cookies;
        } else {
            $this->cookies[$name] = $value;
        }
    }
public function addCookie($name, $value = null)
    {
        if (is_array($name)) {
            $this->cookies = $name + $this->cookies;
        } else {
            $this->cookies[$name] = $value;
        }
    }
public function addCookie ( $ name , $ value = null ) { if ( is_array ( $ name ) ) { $ this -> cookies = $ name + $ this -> cookies ; } else { $ this -> cookies [ $ name ] = $ value ; } }
Adds a cookie for a cURL transfer

Examples:
$curl->addCookie('user', 'admin');
$curl->addCookie(array('user'=>'admin', 'test'=>1));

@param string|array $name Name of cookie or array of cookies (name=>value)
@param string $value Value of cookie
Adds a cookie for a cURL transfer