|
|
@@ -251,10 +251,14 @@ class Curl
|
|
|
{
|
|
|
curl_setopt($this->handle, CURLOPT_USERPWD, $userpwd);
|
|
|
}
|
|
|
- public function setTimeOut($time)
|
|
|
- {
|
|
|
- curl_setopt($this->handle, CURLOPT_TIMEOUT, $time);
|
|
|
- }
|
|
|
+ public function setTimeOut($time)
|
|
|
+ {
|
|
|
+ curl_setopt($this->handle, CURLOPT_TIMEOUT, $time);
|
|
|
+ }
|
|
|
+ public function setConnectTimeout($time)
|
|
|
+ {
|
|
|
+ curl_setopt($this->handle, CURLOPT_CONNECTTIMEOUT, $time);
|
|
|
+ }
|
|
|
public function setCookie($cookie)
|
|
|
{
|
|
|
curl_setopt($this->handle, CURLOPT_COOKIE, $cookie);
|