예제 #1
0
파일: LoginJob.cs 프로젝트: cupidshen/misc
 private WebContentRetrievingProfile CreateRetrievingProfile()
 {
     var profile = new WebContentRetrievingProfile(@"<form name=""Login"".*action=""(?<url>.*?)""");
     profile.AddExpression(@"<input.*name=""__EVENTTARGET"".*value=""(?<eventTarget>.*?)""");
     profile.AddExpression(@"<input.*name=""__EVENTARGUMENT"".*value=""(?<eventArgument>.*?)""");
     profile.AddExpression(@"<input.*name=""__VIEWSTATE"".*value=""(?<viewstate>.*?)""");
     profile.AddExpression(@"<input.*name=""__VIEWSTATEGENERATOR"".*value=""(?<viewstateGenerator>.*?)""");
     return profile;
 }
예제 #2
0
 public WebContentRetriever(WebContentRetrievingProfile profile)
 {
     _profile = profile;
 }