protected void Page_Load(object sender, EventArgs e) { LogHelper.Info <InstallerRestService>(string.Format("Hitting Page_Load on InstallerRestService.aspx for the requested '{0}' feed", Request.QueryString["feed"])); // Stop Caching in IE Response.Cache.SetCacheability(System.Web.HttpCacheability.NoCache); // Stop Caching in Firefox Response.Cache.SetNoStore(); string feed = Request.QueryString["feed"]; string url = "http://our.umbraco.org/html/twitter"; if (feed == "progress") { Response.ContentType = "application/json"; Response.Write(InstallHelper.GetProgress()); } else { if (feed == "blogs") { url = "http://our.umbraco.org/html/blogs"; } if (feed == "sitebuildervids") { url = "http://umbraco.org/feeds/videos/site-builder-foundation-html"; } if (feed == "developervids") { url = "http://umbraco.org/feeds/videos/developer-foundation-html"; } string xmlResponse = library.GetXmlDocumentByUrl(url).Current.OuterXml; if (!xmlResponse.Contains("System.Net.WebException")) { Response.Write(library.GetXmlDocumentByUrl(url).Current.OuterXml); } else { Response.Write("We can't connect to umbraco.tv right now. Click <strong>Set up your new website</strong> above to continue."); } } }