public function reset()
{
curl_close($this->ch);
$this->ch = curl_init();
if (!file_exists('/dev/null')) {
curl_setopt($this->ch, CURLOPT_COOKIEJAR, 'NUL');
} else {
curl_setopt($this->ch, CURLOPT_COOKIEJAR, '/dev/null');
}
}