public function checkConnection()
{
$connection = false;
$url = "http://affjet.dc.fubra.net/tools/gsutil/gs.php?bucket=" . \urlencode($this->_bucket) . "&type=ls";
$context = \stream_context_create(array('http' => array('header' => "Authorization: Basic " . \base64_encode("{$this->_httpLogin}"))));
$return = \file_get_contents($url, false, $context);
if (\preg_match("/ls works/", $return)) {
$connection = true;
}
return $connection;
}