public function __construct($url, array $opts = null)
{
$this->curl = curl_init();
$this->setOption(CURLOPT_URL, $url);
$this->setOption(CURLOPT_HEADER, true);
$this->setOption(CURLOPT_RETURNTRANSFER, true);
if (null !== $opts) {
$this->setOption($opts);
}
}