From fbe3aa4ff71b1bfb2ba0ed111a543de02a6945d4 Mon Sep 17 00:00:00 2001 From: "as2252258@163.com" Date: Tue, 7 Jan 2020 14:15:01 +0800 Subject: [PATCH] add clear --- common/HttpClient.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/HttpClient.php b/common/HttpClient.php index 06db583..f0cb6b1 100644 --- a/common/HttpClient.php +++ b/common/HttpClient.php @@ -262,6 +262,7 @@ class HttpClient if ($this->checkIsIp($host)) { return $host; } + var_dump($host); return System::gethostbyname($host); } @@ -337,7 +338,6 @@ class HttpClient private function coroutine($ip, $url, $data = []) { $client = $this->generate_client($ip, $url, $data); - var_dump($client); if ($client->statusCode < 0) { throw new \Exception($client->errMsg); } @@ -346,7 +346,6 @@ class HttpClient $client->close(); $header = $client->getHeaders(); - var_dump($ip, $url, $data, $body, $data, $header); $body = $this->resolve($header, $body); @@ -392,6 +391,7 @@ class HttpClient if (!empty($this->agent)) { $this->header['User-Agent'] = $this->agent; } + var_dump($host, $this->getHostPort(), $this->header), $this->method; if (!empty($this->header)) { $client->setHeaders($this->parseHeaderMat()); }