public void OpenPage(string url, IPageProcessor pageProcessor) { HttpRequestClient netCenter = new HttpRequestClient() { AllowAutoRedirect = false }; var response = netCenter.GetResponse(); }
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); }