POST返回数据与HttpWatch不一样,程序返回结果是个小星号,哪位大大帮忙看看。谢谢,看下图
[C#] 纯文本查看 复制代码
private void button1_Click(object sender, EventArgs e)
{
item = new HttpItem()
{
URL = "http://10.youzu.com/site/login?username=zhty20152&password=zhty1982&captcha_token=",
Method = "GET",
Cookie = Cookies
};
result = http.GetHtml(item);
Cookies = Utilities.MergerCookies(Cookies, result.Cookie);
item = new HttpItem()
{
URL = "http://play.youzu.com/game/default/enter?gameId=3&opId=1&serverId=30099",
Method = "GET",
Cookie = Cookies
};
result = http.GetHtml(item);
Cookies = Utilities.MergerCookies(Cookies, result.Cookie);
SIDCookies = Utilities.GetMidStr(result.Cookie+";", "YZSESSID=", ";");
textBox1.Text = SIDCookies;
item = new HttpItem()
{
URL = "http://v27.10.youzu.com/index.php",
Method = "GET",
Cookie = Cookies
};
result = http.GetHtml(item);
Cookies = Utilities.MergerCookies(Cookies, result.Cookie);
Htmltxt = result.Html;
richTextBox2.Text = Htmltxt;
}
private void button2_Click(object sender, EventArgs e)
{
item = new HttpItem()
{
URL = "http://v27.10.youzu.com/uuzu.do",
Method = "POST",
Referer = "http://d.10.uuzu.com/GrowUpLaunch.swf?version=1.06/[[DYNAMIC]]/5",
Postdata = "command=PersonalInitial&action=PlayerAction&sid=" + SIDCookies,
Cookie = Cookies
};
result = http.GetHtml(item);
Cookies = Utilities.MergerCookies(Cookies, result.Cookie);
retCode = result.Html;
richTextBox1.Text = Cookies;
richTextBox3.Text = retCode;
}
|