add clear
This commit is contained in:
@@ -341,6 +341,7 @@ class HttpClient
|
|||||||
*/
|
*/
|
||||||
private function coroutine($ip, $url, $data = [])
|
private function coroutine($ip, $url, $data = [])
|
||||||
{
|
{
|
||||||
|
echo $ip . ':' . $url . PHP_EOL;
|
||||||
$client = $this->generate_client($ip, $url, $data);
|
$client = $this->generate_client($ip, $url, $data);
|
||||||
if ($client->statusCode < 0) {
|
if ($client->statusCode < 0) {
|
||||||
throw new \Exception($client->errMsg);
|
throw new \Exception($client->errMsg);
|
||||||
@@ -393,7 +394,6 @@ class HttpClient
|
|||||||
*/
|
*/
|
||||||
private function generate_client($host, $url, $data)
|
private function generate_client($host, $url, $data)
|
||||||
{
|
{
|
||||||
echo $host . ':' . $url . PHP_EOL;
|
|
||||||
$client = new SClient($host, $this->getHostPort(), $this->isSSL);
|
$client = new SClient($host, $this->getHostPort(), $this->isSSL);
|
||||||
if (!empty($this->agent)) {
|
if (!empty($this->agent)) {
|
||||||
$this->header['User-Agent'] = $this->agent;
|
$this->header['User-Agent'] = $this->agent;
|
||||||
|
|||||||
Reference in New Issue
Block a user