add clear
This commit is contained in:
@@ -633,8 +633,12 @@ class HttpClient
|
|||||||
if (!empty($this->agent)) {
|
if (!empty($this->agent)) {
|
||||||
curl_setopt($ch, CURLOPT_USERAGENT, $this->agent);
|
curl_setopt($ch, CURLOPT_USERAGENT, $this->agent);
|
||||||
}
|
}
|
||||||
|
if (!empty($this->getSslCertFile())) {
|
||||||
curl_setopt($ch, CURLOPT_SSLCERT, $this->getSslCertFile());
|
curl_setopt($ch, CURLOPT_SSLCERT, $this->getSslCertFile());
|
||||||
|
}
|
||||||
|
if (!empty($this->getSslCertFile())) {
|
||||||
|
curl_setopt($ch, CURLOPT_SSLCERT, $this->getSslCertFile());
|
||||||
|
}
|
||||||
curl_setopt($ch, CURLOPT_SSLKEY, $this->getSslKeyFile());
|
curl_setopt($ch, CURLOPT_SSLKEY, $this->getSslKeyFile());
|
||||||
curl_setopt($ch, CURLOPT_NOBODY, FALSE);
|
curl_setopt($ch, CURLOPT_NOBODY, FALSE);
|
||||||
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 1); // 超时设置
|
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 1); // 超时设置
|
||||||
|
|||||||
Reference in New Issue
Block a user