getUrl(); try { $response = ('post' == $this->method) ? $this->client->post($url, [ \GuzzleHttp\RequestOptions::BODY => $this->getParameters(), \GuzzleHttp\RequestOptions::HEADERS => $this->getHeaders(), \GuzzleHttp\RequestOptions::TIMEOUT => 10, ]) : $this->client->get($url, [ \GuzzleHttp\RequestOptions::HEADERS => $this->getHeaders(), \GuzzleHttp\RequestOptions::TIMEOUT => 10, ]); $this->parseResponse($response->getBody()); } catch (GuzzleException $exception) { if ($this->logger) { $this->logger->warning('IP LOOKUP: '.$exception->getMessage()); } } } }