function get_container($container_name=NULL)
    {
        list($status, $reason, $count, $bytes) =
                $this->cfs_http->head_container($container_name);
        #if ($status == 401 && $this->_re_auth()) {
        #    return $this->get_container($container_name);
        #}
        if ($status == 404) {
            throw new NoSuchContainerException("Container not found.");
        }
        if ($status < 200 || $status > 299) {
            throw new InvalidResponseException(
                "Invalid response: ".$this->cfs_http->get_error());
        }
        return new CF_Container($this->cfs_auth, $this->cfs_http,
            $container_name, $count, $bytes);
    }
function get_container($container_name=NULL)
    {
        list($status, $reason, $count, $bytes) =
                $this->cfs_http->head_container($container_name);
        #if ($status == 401 && $this->_re_auth()) {
        #    return $this->get_container($container_name);
        #}
        if ($status == 404) {
            throw new NoSuchContainerException("Container not found.");
        }
        if ($status < 200 || $status > 299) {
            throw new InvalidResponseException(
                "Invalid response: ".$this->cfs_http->get_error());
        }
        return new CF_Container($this->cfs_auth, $this->cfs_http,
            $container_name, $count, $bytes);
    }
function get_container ( $ container_name = NULL ) { list ( $ status , $ reason , $ count , $ bytes ) = $ this -> cfs_http -> head_container ( $ container_name ) ; #if ($status == 401 && $this->_re_auth()) { #    return $this->get_container($container_name); #} if ( $ status == 404 ) { throw new NoSuchContainerException ( "Container not found." ) ; } if ( $ status < 200 || $ status > 299 ) { throw new InvalidResponseException ( "Invalid response: " . $ this -> cfs_http -> get_error ( ) ) ; } return new CF_Container ( $ this -> cfs_auth , $ this -> cfs_http , $ container_name , $ count , $ bytes ) ; }
Return a Container instance

For the given name, return a Container instance if the remote Container
exists, otherwise throw a Not Found exception.

Example:
<code>
# ... authentication code excluded (see previous examples) ...
#
$conn = new CF_Authentication($auth);

$images = $conn->get_container("my photos");
print "Number of Objects: " . $images->count . "\n";
print "Bytes stored in container: " . $images->bytes . "\n";
</code>

@param string $container_name name of the remote Container
@return container CF_Container instance
@throws NoSuchContainerException thrown if no remote Container
@throws InvalidResponseException unexpected response
Return a Container instance