add clear
This commit is contained in:
@@ -441,7 +441,6 @@ class HttpClient
|
|||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
$client = $this->generate_client($this->host, $url, $data);
|
$client = $this->generate_client($this->host, $url, $data);
|
||||||
var_dump($client);
|
|
||||||
if ($client->statusCode < 0) {
|
if ($client->statusCode < 0) {
|
||||||
throw new Exception($client->errMsg);
|
throw new Exception($client->errMsg);
|
||||||
}
|
}
|
||||||
@@ -516,6 +515,9 @@ class HttpClient
|
|||||||
if (!empty($this->_data)) {
|
if (!empty($this->_data)) {
|
||||||
$client->setData($this->_data);
|
$client->setData($this->_data);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var_dump($host, $url, $this->getHostPort());
|
||||||
|
|
||||||
$client->execute($url);
|
$client->execute($url);
|
||||||
$client->close();
|
$client->close();
|
||||||
return $client;
|
return $client;
|
||||||
|
|||||||
Reference in New Issue
Block a user