Exemple #1
0
        public void TestMethodCheckServerSupportPartialContent()
        {
            bool serverSupport01 = WebRequestHelper.CheckServerSupportPartialContent("https://s3-ap-northeast-1.amazonaws.com/hooloop360travelmap/hooloop360travelmap/Video/taidong/taidong_%E5%8E%9F%E5%A7%8B%E9%83%A8%E8%90%BD%E5%B1%B1%E5%9C%B0%E7%BE%8E%E9%A3%9F.mp4");

            Assert.AreEqual(true, serverSupport01);
            Console.WriteLine(serverSupport01);

            bool serverSupport02 = WebRequestHelper.CheckServerSupportPartialContent("https://s3-ap-northeast-1.amazonaws.com");

            Assert.AreEqual(false, serverSupport02);
            Console.WriteLine(serverSupport02);

            bool serverSupport03 = WebRequestHelper.CheckServerSupportPartialContent("https://scholar.princeton.edu/sites/default/files/oversize_pdf_test_0.pdf");

            Assert.AreEqual(true, serverSupport03);
            Console.WriteLine(serverSupport03);

            bool serverSupport04 = WebRequestHelper.CheckServerSupportPartialContent(url4);

            Assert.AreEqual(true, serverSupport04);
            Console.WriteLine(serverSupport04);
        }