|
楼主 |
发表于 2013-9-6 21:33:50
|
显示全部楼层
ArrayList NameList = new ArrayList();
HttpItem hi = new HttpItem();
hi.URL = GDPublicSource.URL + "/Account_List.aspx?MT=5&AVID=" + GDPublicSource.AVID;
hi.Cookie = Command.GetCookies(GDPublicSource.URL);
string res = hh.GetHtml(hi).Html;
MatchCollection mxtr = Command.GetAllValue(res, "<tr class=\"t_list_tr_0\"", "</tr>");
foreach (Match m in mxtr)
{
string Name = Command.GetValue(m.Value, " <td class=\"f_left TD_r\">", "</td>");
Name = Command.GetValue(Name, "sTE", ";");
Name = Name.Replace(")", "").Replace("(", "").Replace("'", "");
string UID = Command.GetValue(m.Value, "AVID=" + GDPublicSource.AVID + "&ID=", "'");
if (Name != "" && Name != null)
{
hi.URL = GDPublicSource.URL + "/TxtEgis.swf?T=" + Name.Split(',')[0] + "&AS=" + Name.Split(',')[1];
hi.ResultType = ResultType.Byte;
byte[] UserName = hh.GetHtml(hi).ResultByte;
string s = Encoding.UTF8.GetString(UserName);
}
if (UID != "" && UID != null && UID != PublicSource.UVID)
{
NameList.Add(UID);
}
}
return NameList;
s 返回值是乱码!如何解析出正确的值。
|
|