public function resetConnection()
{
$this->command = null;
$this->options = [];
$this->path = '';
$this->query = '';
$this->requestBody = '';
$this->responseHeaders = [];
$this->responseBody = '';
if (version_compare(PHP_VERSION, '5.5.0') >= 0) {
curl_reset($this->connection);
} else {
curl_close($this->connection);
$this->connection = null;
}
}