mirror of
https://github.com/php-curl-class/php-curl-class.git
synced 2026-08-30 20:20:53 +00:00
Add MultiCurl::setCookieString()
This commit is contained in:
@@ -386,6 +386,19 @@ class MultiCurl
|
||||
$this->setOpt(CURLOPT_COOKIE, str_replace('+', '%20', http_build_query($this->cookies, '', '; ')));
|
||||
}
|
||||
|
||||
/**
|
||||
* Set Cookie String
|
||||
*
|
||||
* @access public
|
||||
* @param $string
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function setCookieString($string)
|
||||
{
|
||||
return $this->setOpt(CURLOPT_COOKIE, $string);
|
||||
}
|
||||
|
||||
/**
|
||||
* Set Cookie File
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user