Esempio n. 1
0
        public void Handshake()
        {
            string html = HttpRequests.Get(url, true);

            if (html != null)
            {
                PotamOSController.Engine.NewPage(UIPages.Handshake, html);
            }
        }
Esempio n. 2
0
        public void GetTest()
        {
            string response = HttpRequests.Get(goodurl, true);

            Assert.IsNotNull(response, "Call to Google should return something.");

            response = null;
            response = HttpRequests.Get(badurl, true);
            Assert.IsNull(response, "Call to Badhost should return null.");
        }