// Downloads the file at the given URL. string download(const string& url) { scoped_blocking_signal signal; // Download the file. return string(GetHttpFile(_session, url.c_str())); }
// Downloads the file at the given URL. string download(const string& url) { // Enable oversubscription. Context::Oversubscribe(true); // Download the file. string content = GetHttpFile(_session, url.c_str()); // Disable oversubscription. Context::Oversubscribe(false); return content; }
std::string ContentManager::GetLatestApplicationVersionAvailable() { std::string version = GetHttpFile(GetLatestVersionUrl()); return STD_STRING(TowxString(version).Trim().Trim(false)); }