Add port setter.

This commit is contained in:
tixlegeek
2015-05-06 15:58:24 +02:00
parent 24f2d0e20a
commit fa68cb658b
+12
View File
@@ -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
*