diff --git a/common/HttpClient.php b/common/HttpClient.php index 32f47e1..d5e2e74 100644 --- a/common/HttpClient.php +++ b/common/HttpClient.php @@ -300,7 +300,6 @@ class HttpClient } $body = $client->body; - var_dump($body); $client->close(); $header = $client->getHeaders(); @@ -345,7 +344,6 @@ class HttpClient */ private function generate_client($host, $url, $data) { - var_dump($host, $this->getHostPort(), $url, $this->isSSL); $client = new SClient($host, $this->getHostPort(), $this->isSSL); if (!empty($this->agent)) { $this->header['User-Agent'] = $this->agent; @@ -355,7 +353,6 @@ class HttpClient } if (strtolower($this->method) == self::GET) { - echo $host . ':' . $this->getHostPort() . ' ' . $url . '?' . $data; $client->get($url . '?' . $data); } else if (strtolower($this->method) == self::PUT) { $client->setMethod('PUT'); @@ -366,10 +363,8 @@ class HttpClient $data = json_encode($data, JSON_UNESCAPED_UNICODE); } $client->setData($data); - $execute = $client->execute($url); - var_dump($execute); + $client->execute($url); } else { - echo $host . ':' . $this->getHostPort() . ' ' . $url; $client->post($url, $data); } return $client;