public static void LoadVendors() { GetHtml(vueRoot + "/VSSForms/WebSupportCenter.cfm", "UserName=ptolochko&Password=tra_7EpA&SiteID=62933"); var urls = GetUrls().ToList(); for (int i = 0; i < urls.Count; i++) { ExamImportService.WriteStatus("Загрузка вендоров", Providers.VueExamType, i, urls.Count); var url = urls[i]; var html = GetHtml(url); ExamImportService.WriteFile(Folder + "/" + url.GetHashCode() + ".html", html); } }
private static void Request(int clientID, int programID) { var examRegistration = "ValidateCountry=&CountryID=RUS&StateID="; examRegistration += "&ProgramName=a&ClientName=a" + "&ProgramID=" + programID + "&ClientID=" + clientID + " &CountryID=RUS&StateID="; var cookies = new CookieCollection(); cookies.Add(new Cookie("ExamRegistration", examRegistration, "/", "www.register.prometric.com")); var result = GetRequest(exam, cookies); ExamImportService.WriteFile(ExamFolder + "/client" + clientID + "program" + programID + ".htm", result[1]); }