mirror of
https://github.com/php-curl-class/php-curl-class.git
synced 2026-09-10 18:36:31 +00:00
Implement setInterface()
Implement Curl::setInterface() and MultiCurl::setInterface()
This commit is contained in:
@@ -284,6 +284,7 @@ Curl::setRetry($mixed)
|
||||
Curl::setTimeout($seconds)
|
||||
Curl::setUrl($url, $mixed_data = '')
|
||||
Curl::setUserAgent($user_agent)
|
||||
Curl::setInterface($interface)
|
||||
Curl::setXmlDecoder($mixed)
|
||||
Curl::success($callback)
|
||||
Curl::unsetHeader($key)
|
||||
@@ -335,6 +336,7 @@ MultiCurl::setRetry($mixed)
|
||||
MultiCurl::setTimeout($seconds)
|
||||
MultiCurl::setUrl($url)
|
||||
MultiCurl::setUserAgent($user_agent)
|
||||
MultiCurl::setInterface($interface)
|
||||
MultiCurl::setXmlDecoder($mixed)
|
||||
MultiCurl::start()
|
||||
MultiCurl::success($callback)
|
||||
|
||||
@@ -1222,6 +1222,20 @@ class Curl
|
||||
$this->setOpt(CURLOPT_USERAGENT, $user_agent);
|
||||
}
|
||||
|
||||
/**
|
||||
* Set Interface
|
||||
*
|
||||
* The name of the outgoing network interface to use.
|
||||
* This can be an interface name, an IP address or a host name.
|
||||
*
|
||||
* @access public
|
||||
* @param $interface
|
||||
*/
|
||||
public function setInterface($interface)
|
||||
{
|
||||
$this->setOpt(CURLOPT_INTERFACE, $interface);
|
||||
}
|
||||
|
||||
/**
|
||||
* Attempt Retry
|
||||
*
|
||||
|
||||
@@ -787,6 +787,20 @@ class MultiCurl
|
||||
$this->setOpt(CURLOPT_USERAGENT, $user_agent);
|
||||
}
|
||||
|
||||
/**
|
||||
* Set Interface
|
||||
*
|
||||
* The name of the outgoing network interface to use.
|
||||
* This can be an interface name, an IP address or a host name.
|
||||
*
|
||||
* @access public
|
||||
* @param $interface
|
||||
*/
|
||||
public function setInterface($interface)
|
||||
{
|
||||
$this->setOpt(CURLOPT_INTERFACE, $interface);
|
||||
}
|
||||
|
||||
/**
|
||||
* Start
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user