public void LoginToBackoffice() { if (_requestHandler.Cookies.Count != 0) { return; } _viewState.Backoffice.LoginUrl = FindBackofficeLoginUrl(); var loginData = string.Format("j_username={0}&j_password={1}&submit=", _viewState.Backoffice.UserName, _viewState.Backoffice.Password); var loginUrl = string.Format("{0}/j_spring_security_check", _viewState.Backoffice.LoginUrl); _requestHandler.ExecutePost(loginUrl, loginData, true); }