Skip to content

Commit c634e65

Browse files
committed
Add MultiCurl::setCookieString()
1 parent 946f4a7 commit c634e65

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/Curl/MultiCurl.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -386,6 +386,19 @@ public function setCookie($key, $value)
386386
$this->setOpt(CURLOPT_COOKIE, str_replace('+', '%20', http_build_query($this->cookies, '', '; ')));
387387
}
388388

389+
/**
390+
* Set Cookie String
391+
*
392+
* @access public
393+
* @param $string
394+
*
395+
* @return bool
396+
*/
397+
public function setCookieString($string)
398+
{
399+
return $this->setOpt(CURLOPT_COOKIE, $string);
400+
}
401+
389402
/**
390403
* Set Cookie File
391404
*

0 commit comments

Comments
 (0)