mirror of
https://github.com/php-curl-class/php-curl-class.git
synced 2026-09-05 15:27:56 +00:00
Add port setter.
This commit is contained in:
@@ -538,6 +538,18 @@ class Curl
|
||||
$this->setOpt(CURLOPT_COOKIE, str_replace(' ', '%20', urldecode(http_build_query($this->cookies, '', '; '))));
|
||||
}
|
||||
|
||||
/**
|
||||
* Set Port
|
||||
*
|
||||
* @access public
|
||||
* @param $port
|
||||
*/
|
||||
public function setPort($port)
|
||||
{
|
||||
$this->cookies[$key] = $value;
|
||||
$this->setOpt(CURLOPT_PORT, intval($port));
|
||||
}
|
||||
|
||||
/**
|
||||
* Set Cookie File
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user