public function checkConnection()
{
//If not login properly the construct launch an exception
$connection = true;
$yesterday = new \DateTime();
$yesterday->sub(new \DateInterval('P2D'));
$urls = array();
$urls[] = new \Oara\Curl\Request("https://publisher.ebaypartnernetwork.com/PublisherReportsTx?pt=2&start_date={$yesterday->format("n/j/Y")}&end_date={$yesterday->format("n/j/Y")}&user_name={$this->_credentials['user']}&user_password={$this->_credentials['password']}&advIdProgIdCombo=&tx_fmt=2&submit_tx=Download", array());
$exportReport = $this->_client->get($urls);
if (\preg_match("/DOCTYPE html PUBLIC/", $exportReport[0])) {
$connection = false;
}
return $connection;
}