Пример #1
0
 public void OpenPage(string url, IPageProcessor pageProcessor)
 {
     HttpRequestClient netCenter = new HttpRequestClient()
     {
         AllowAutoRedirect = false
     };
     var response = netCenter.GetResponse();
 }
Пример #2
0
        public bool Login(string loginPath, string userJson)
        {
            _LoginUrl = loginPath;
            HttpRequestClient netCenter = new HttpRequestClient()
            {
                AllowAutoRedirect = false
            };
            var response = netCenter.PostResponse(loginPath, userJson);

            if (response.Cookies.IsAspAuthenticate)
            {
                this.Cookies = response.Cookies;
                return(true);
            }
            return(false);
        }