Exemplo n.º 1
0
        public void TestNavigateReferrer()
        {
            var session = new BrowsingSession();
            session.CurrentProxy = new DirectBrowsing();

            session.AddDecorator(new AutoRefererDecorator());
            session.AddDecorator(new CommonUserAgentDecorator());
            session.NavigateGet(new Uri("http://www.binaryanalysis.org/asdfadsf"));
            session.NavigateGet(new Uri("http://www.binaryanalysis.org/yetrysdf"));
        }
Exemplo n.º 2
0
        public void TestNavigateReferrer()
        {
            var session = new BrowsingSession();

            session.CurrentProxy = new DirectBrowsing();

            session.AddDecorator(new AutoRefererDecorator());
            session.AddDecorator(new CommonUserAgentDecorator());
            session.NavigateGet(new Uri("http://www.binaryanalysis.org/asdfadsf"));
            session.NavigateGet(new Uri("http://www.binaryanalysis.org/yetrysdf"));
        }
Exemplo n.º 3
0
        public void TestNavigateGet()
        {
            var session = new BrowsingSession();
            session.CurrentProxy = new DirectBrowsing();

            using (var resp = session.NavigateGet(new Uri("http://www.binaryanalysis.org")))
            {
                Console.WriteLine(resp.StatusCode);
                Console.WriteLine(resp.ResponseContent);
                Console.WriteLine(resp.ResponseContent);

                Console.WriteLine(resp.Headers);
            }
        }
Exemplo n.º 4
0
        public void TestNavigateGet()
        {
            var session = new BrowsingSession();

            session.CurrentProxy = new DirectBrowsing();

            using (var resp = session.NavigateGet(new Uri("http://www.binaryanalysis.org")))
            {
                Console.WriteLine(resp.StatusCode);
                Console.WriteLine(resp.ResponseContent);
                Console.WriteLine(resp.ResponseContent);

                Console.WriteLine(resp.Headers);
            }
        }