|
楼主 |
发表于 2019-8-19 10:29:23
|
显示全部楼层
public string GetPageList(string cookieStr, int page)
{
string str = "http://" + this.host + "/kssjwpt/MasterPage/JBXX_NEW.aspx?Id=&JSH=&XM=&XB=&BM=&ZJH=&RSXZ=&NL_ST=&NL_ED=&ZZ=&BAHJ=&BADW=&CSRQ_ST=&CSRQ_ED=&SYDW=&RSRQ_ST=&RSRQ_ED=&CSSJ_ST=&CSSJ_ED=&HJD=&AY=&CSYY=&DAWZ=&DWLX=&Faint=Yes&ZSZT=1&type=Ser";
int num = 10;
int num2 = ((page - 1) * num) + 1;
int num3 = num2 + 9;
HttpHelper helper = new HttpHelper();
HttpItem item = new HttpItem
{
Method = "Get",
URL = str,
Postdata = $"__EVENTTARGET=LinkBtnNext&__EVENTARGUMENT=&__VIEWSTATE=%2FwEPDwUJNzgwMDkwMDc2DxYEHgh3aGVyZVN0cgUWIEFORCBBLlpTWlQgTElLRSAnMSUnIB4JSkJYWExCU1FMBfYBIEZST00gd2F0Y2hkYi5qYnh4IEEgIGxlZnQgam9pbiBXQVRDSERCLlhYRE0geHg2ICBvbiB4eDYuZmllbGRuYW1lICA9ICdYWlFIJyBhbmQgeHg2LmNvZGU9QS5ISkQgIGxlZnQgam9pbiBXQVRDSERCLlhYRE0geHg3ICBvbiB4eDcuZmllbGRuYW1lICA9ICdYU0FKJyBhbmQgeHg3LmNvZGU9QS5BWSAgV0hFUkUgQS5MRkZIIExJS0UgJzM3MTUyMjExMSUnICBBTkQgQS5aU1pUIExJS0UgJzElJyAgT1JERVIgQlkgQS5SU1JRIERFU0MgFgICAw9kFgQCDw88KwANAQAPFggeC0FsbG93UGFnaW5nZx4IUGFnZVNpemUCEh4LXyFEYXRhQm91bmRnHgtfIUl0ZW1Db3VudAIKZBYCZg9kFhgCAQ8PZBYKHgpvbmRibGNsaWNrBRRzaG93SkJYWERldGFpbCh0aGlzKR4Hb25jbGljawUjcXVlcnlTdWIodGhpcyk7bW9kaWZ5Um93Q29sb3IodGhpc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ExZGQCDw8PFgIfCwUBMGRkAgEPDxYCHwsFCTIwMTcwMDAwMWRkAgIPDxYCHwsFCeW9reemj%2BWGjWRkAgMPDxYCHwsFA%2BeUt2RkAgQPDxYCHwsFCjE5ODgtMDItMTdkZAIFDw8WAh8LBQQwMTA0ZGQCBg8PFgIfCwUKMjAxNy0xMS0xMGRkAgcPDxYCHwsFDOWIkeS6i%2BaLmOeVmWRkAggPDxYCHwsFDOWIkeS6i%2BaLmOeVmWRkAgkPZBYCZg8VAQzmnKrlhrPkurrlkZhkAgoPDxYCHwsFJ%2BiOmOWOv%2BWFrOWuieWxgOWIkeitpuWkp%2BmYn%2BWfjuWMuuS4remYn2RkAgsPDxYCHgdWaXNpYmxlaGRkAgwPDxYCHwxoZGQCEQ9kFgJmD2QWAmYPZBYGAgEPDxYCHwsFATFkZAIDDw8WAh8LBQIyMmRkAgUPDxYCHwsFAzIxM2RkGAEFCUdyaWRWaWV3MQ88KwAKAQgCAWSKPMYdyGZCTWkqrWGxkOJXEr8T%2Bg%3D%3D&__EVENTVALIDATION=%2FwEWDQKG3vaxDQKl%2FpqeAwKropaOAwLjvvOnCAKd6tSMBwKv5s%2BMDALMhPiFBgKa7byuAgLDtNuKCwLKwoiiBgKn8Ij2BAKj8MT2AwK%2B7%2BbtDNOPWPCuzlpgvoL1L35M45ugGOFH&ystart={num2}¥d={num3}&allnums=&txtJBXXSQL=&txtEntireCount=&txtType=&txtPageSize=20",
Cookie = cookieStr,
Accept = "image/jpeg, image/gif, image/pjpeg, application/x-ms-application, application/xaml+xml, application/x-ms-xbap, *",
Referer = "http://" + this.host + "/kssjwpt/MasterPage/JBXX_NEW.aspx?Id=&JSH=&XM=&XB=&BM=&ZJH=&RSXZ=&NL_ST=&NL_ED=&ZZ=&BAHJ=&BADW=&CSRQ_ST=&CSRQ_ED=&SYDW=&RSRQ_ST=&RSRQ_ED=&CSSJ_ST=&CSSJ_ED=&HJD=&AY=&CSYY=&DAWZ=&DWLX=&Faint=Yes&ZSZT=1&type=Ser",
UserAgent = "Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; .NET4.0C; .NET4.0E)",
ContentType = "application/x-www-form-urlencoded",
Host = this.host,
KeepAlive = true
};
item.Header.Add("Accept-Language", "zh-CN");
item.Header.Add("Accept-Encoding", "gzip, deflate");
item.Header.Add("Pragma", "no-cache");
return helper.GetHtml(item).Html;
} |
|