public function b2DownloadFileByName($downloadURL, $bucketName, $fileName, $token = null, $metadataOnly = false)
    {
        $uri = $downloadURL.'/file/'.$bucketName.'/'.$fileName;
        $curl = $this->prepareCurl();
        if (is_null($token)) {
            $curl->setVerifyPeer(false); // ensure it.
        }
        $browser = new Browser($curl);
        if (is_null($token)) {
            $headers = [];
        } else {
            $headers = $this->getHeaders($token);
        }
        $response = $metadataOnly ? $browser->head($uri, $headers) : $browser->get($uri, $headers);

        return new B2Response($response, false);
    }