H
hsgrass
Unregistered / Unconfirmed
GUEST, unregistred user!
/////////////下面正常登录的内容
POST /Login.aspx HTTP/1.1
User-Agent: Opera/9.10 (Windows NT 5.1;
U;
zh-cn)
Host: www.828sb.com
Accept: text/html, application/xml;q=0.9, application/xhtml+xml, image/png, image/jpeg, image/gif, image/x-xbitmap, */*;q=0.1
Accept-Language: en,zh-cn;q=0.9
Accept-Charset: iso-8859-1, utf-8, utf-16, *;q=0.1
Accept-Encoding: deflate, gzip, x-gzip, identity, *;q=0
Referer: http://www.828sb.com/Login.aspx
Cookie: ASP.NET_SessionId=dhyibebhb4mzxx55jjokri55;
sb1888sticky=2287511744.20480.0000
Cookie2: $Version=1
Connection: Keep-Alive, TE
TE: deflate, gzip, chunked, identity, trailers
Content-Length: 468
Content-Type: application/x-www-form-urlencoded
__VIEWSTATE=%2FwEPDwUJMzA4MTk2MzI4D2QWAgIDD2QWBAIDDw8WAh4ISW1hZ2VVcmwFGX4vUHVibGljL0ltYWdlVmVyaWZ5LmFzcHhkZAIFDw8WAh8ABRlJbWFnZXMvaG9tZS9idXR0TG9naW4uZ2lmZGQYAQUeX19Db250cm9sc1JlcXVpcmVQb3N0QmFja0tleV9fFgEFC0xvZ2luQnV0dG9uz2V6y95EsHpqteTKiCZsVaWG0Lo%3D&s21UserIdTextBox=username&i14VerificationCodeTextBox=3793&s21PassWordTextBox=password&__EVENTVALIDATION=%2FwEWBQL4y8ukCALD95frAQLs3JTXBQK2r8c2Av6M0J8PFDRx4EZ25x063qsL7goK%2F6qlOX0%3D&LoginButton.x=27&LoginButton.y=20GET /Default.aspx HTTP/1.1
User-Agent: Opera/9.10 (Windows NT 5.1;
U;
zh-cn)
Host: www.828sb.com
Accept: text/html, application/xml;q=0.9, application/xhtml+xml, image/png, image/jpeg, image/gif, image/x-xbitmap, */*;q=0.1
Accept-Language: en,zh-cn;q=0.9
Accept-Charset: iso-8859-1, utf-8, utf-16, *;q=0.1
Accept-Encoding: deflate, gzip, x-gzip, identity, *;q=0
Referer: http://www.828sb.com/Login.aspx
Cookie: ASP.NET_SessionId=dhyibebhb4mzxx55jjokri55;
.ASPXAUTH=551D7959DB5AB632ED79284AD2EE6908CC35302677ABC6E5BF9D6044858886FE4B2D60D8EC4A86B0F6600E9C11B9EE44AE98C4AAADEA158ACE6465A72CE37402663F46190F91AD02A1FD404726528BE3;
sb1888sticky=2287511744.20480.0000
Cookie2: $Version=1
Connection: Keep-Alive, TE
TE: deflate, gzip, chunked, identity, trailers
GET /MenuBet/TopMenu.aspx HTTP/1.1
User-Agent: Opera/9.10 (Windows NT 5.1;
U;
zh-cn)
Host: www.828sb.com
Accept: text/html, application/xml;q=0.9, application/xhtml+xml, image/png, image/jpeg, image/gif, image/x-xbitmap, */*;q=0.1
Accept-Language: en,zh-cn;q=0.9
Accept-Charset: iso-8859-1, utf-8, utf-16, *;q=0.1
Accept-Encoding: deflate, gzip, x-gzip, identity, *;q=0
Referer: http://www.828sb.com/Default.aspx
Cookie: ASP.NET_SessionId=dhyibebhb4mzxx55jjokri55;
.ASPXAUTH=551D7959DB5AB632ED79284AD2EE6908CC35302677ABC6E5BF9D6044858886FE4B2D60D8EC4A86B0F6600E9C11B9EE44AE98C4AAADEA158ACE6465A72CE37402663F46190F91AD02A1FD404726528BE3;
sb1888sticky=2287511744.20480.0000
Cookie2: $Version=1
Connection: Keep-Alive, TE
TE: deflate, gzip, chunked, identity, trailers
/////////////////我提交的内容, 这个已经将HandleRedirects设置为TRUE
POST /Login.aspx?s11Lang=CHS HTTP/1.1
Connection: Keep-Alive
Content-Type: application/x-www-form-urlencoded
Content-Length: 492
Cache-control: no-cache
Cookie: sb1888sticky=1968744640.20480.0000;
Host: www.828sb.com
Accept: text/html, */*
Accept-Encoding: gzip
Accept-Language: zh-cn
Referer: http://www.828sb.com/Login.aspx?s11Lang=CHS
User-Agent: Mozilla/4.0 (compatible;
MSIE 6.0;
Windows NT 5.1
Design=NewLookRadioButton&s21UserIdTextBox=userid&s21PassWordTextBox=password&i14VerificationCodeTextBox=5943&LoginButton.x=16&LoginButton.y=27&__VIEWSTATE=%2FwEPDwUJMzA4MTk2MzI4D2QWAgIDD2QWBAIDDw8WAh4ISW1hZ2VVcmwFGX4vUHVibGljL0ltYWdlVmVyaWZ5LmFzcHhkZAIFDw8WAh8ABRlJbWFnZXMvaG9tZS9idXR0TG9naW4uZ2lmZGQYAQUeX19Db250cm9sc1JlcXVpcmVQb3N0QmFja0tleV9fFgEFC0xvZ2luQnV0dG9upDEkDTswUEMne0HtiiIxybabU1A%3D&__EVENTVALIDATION=%2FwEWBQLrpruuAQLD95frAQLs3JTXBQK2r8c2Av6M0J8PTxSFESsCq9QTvBHTupApGoKrVQ0%3D
//就是登录不了网站,为什么?我估计服务器的代码是这样的
private void Btn_Login_Click(object sender, System.EventArgs e)
{
if(this.Txt_UserName.Text=="Admin"
&&
this.Txt_Password.Text=="123456"
{
//验证后转到DEFAULT
System.Web.Security.FormsAuthen
tication.SetAuthCookie(this.Txt_UserName.Text,false);
Response.Redirect("Default.aspx"
}
}
有朋友使用IDHTTP登录ASPX页面成功的吗?INDY9。18
POST /Login.aspx HTTP/1.1
User-Agent: Opera/9.10 (Windows NT 5.1;
U;
zh-cn)
Host: www.828sb.com
Accept: text/html, application/xml;q=0.9, application/xhtml+xml, image/png, image/jpeg, image/gif, image/x-xbitmap, */*;q=0.1
Accept-Language: en,zh-cn;q=0.9
Accept-Charset: iso-8859-1, utf-8, utf-16, *;q=0.1
Accept-Encoding: deflate, gzip, x-gzip, identity, *;q=0
Referer: http://www.828sb.com/Login.aspx
Cookie: ASP.NET_SessionId=dhyibebhb4mzxx55jjokri55;
sb1888sticky=2287511744.20480.0000
Cookie2: $Version=1
Connection: Keep-Alive, TE
TE: deflate, gzip, chunked, identity, trailers
Content-Length: 468
Content-Type: application/x-www-form-urlencoded
__VIEWSTATE=%2FwEPDwUJMzA4MTk2MzI4D2QWAgIDD2QWBAIDDw8WAh4ISW1hZ2VVcmwFGX4vUHVibGljL0ltYWdlVmVyaWZ5LmFzcHhkZAIFDw8WAh8ABRlJbWFnZXMvaG9tZS9idXR0TG9naW4uZ2lmZGQYAQUeX19Db250cm9sc1JlcXVpcmVQb3N0QmFja0tleV9fFgEFC0xvZ2luQnV0dG9uz2V6y95EsHpqteTKiCZsVaWG0Lo%3D&s21UserIdTextBox=username&i14VerificationCodeTextBox=3793&s21PassWordTextBox=password&__EVENTVALIDATION=%2FwEWBQL4y8ukCALD95frAQLs3JTXBQK2r8c2Av6M0J8PFDRx4EZ25x063qsL7goK%2F6qlOX0%3D&LoginButton.x=27&LoginButton.y=20GET /Default.aspx HTTP/1.1
User-Agent: Opera/9.10 (Windows NT 5.1;
U;
zh-cn)
Host: www.828sb.com
Accept: text/html, application/xml;q=0.9, application/xhtml+xml, image/png, image/jpeg, image/gif, image/x-xbitmap, */*;q=0.1
Accept-Language: en,zh-cn;q=0.9
Accept-Charset: iso-8859-1, utf-8, utf-16, *;q=0.1
Accept-Encoding: deflate, gzip, x-gzip, identity, *;q=0
Referer: http://www.828sb.com/Login.aspx
Cookie: ASP.NET_SessionId=dhyibebhb4mzxx55jjokri55;
.ASPXAUTH=551D7959DB5AB632ED79284AD2EE6908CC35302677ABC6E5BF9D6044858886FE4B2D60D8EC4A86B0F6600E9C11B9EE44AE98C4AAADEA158ACE6465A72CE37402663F46190F91AD02A1FD404726528BE3;
sb1888sticky=2287511744.20480.0000
Cookie2: $Version=1
Connection: Keep-Alive, TE
TE: deflate, gzip, chunked, identity, trailers
GET /MenuBet/TopMenu.aspx HTTP/1.1
User-Agent: Opera/9.10 (Windows NT 5.1;
U;
zh-cn)
Host: www.828sb.com
Accept: text/html, application/xml;q=0.9, application/xhtml+xml, image/png, image/jpeg, image/gif, image/x-xbitmap, */*;q=0.1
Accept-Language: en,zh-cn;q=0.9
Accept-Charset: iso-8859-1, utf-8, utf-16, *;q=0.1
Accept-Encoding: deflate, gzip, x-gzip, identity, *;q=0
Referer: http://www.828sb.com/Default.aspx
Cookie: ASP.NET_SessionId=dhyibebhb4mzxx55jjokri55;
.ASPXAUTH=551D7959DB5AB632ED79284AD2EE6908CC35302677ABC6E5BF9D6044858886FE4B2D60D8EC4A86B0F6600E9C11B9EE44AE98C4AAADEA158ACE6465A72CE37402663F46190F91AD02A1FD404726528BE3;
sb1888sticky=2287511744.20480.0000
Cookie2: $Version=1
Connection: Keep-Alive, TE
TE: deflate, gzip, chunked, identity, trailers
/////////////////我提交的内容, 这个已经将HandleRedirects设置为TRUE
POST /Login.aspx?s11Lang=CHS HTTP/1.1
Connection: Keep-Alive
Content-Type: application/x-www-form-urlencoded
Content-Length: 492
Cache-control: no-cache
Cookie: sb1888sticky=1968744640.20480.0000;
Host: www.828sb.com
Accept: text/html, */*
Accept-Encoding: gzip
Accept-Language: zh-cn
Referer: http://www.828sb.com/Login.aspx?s11Lang=CHS
User-Agent: Mozilla/4.0 (compatible;
MSIE 6.0;
Windows NT 5.1
Design=NewLookRadioButton&s21UserIdTextBox=userid&s21PassWordTextBox=password&i14VerificationCodeTextBox=5943&LoginButton.x=16&LoginButton.y=27&__VIEWSTATE=%2FwEPDwUJMzA4MTk2MzI4D2QWAgIDD2QWBAIDDw8WAh4ISW1hZ2VVcmwFGX4vUHVibGljL0ltYWdlVmVyaWZ5LmFzcHhkZAIFDw8WAh8ABRlJbWFnZXMvaG9tZS9idXR0TG9naW4uZ2lmZGQYAQUeX19Db250cm9sc1JlcXVpcmVQb3N0QmFja0tleV9fFgEFC0xvZ2luQnV0dG9upDEkDTswUEMne0HtiiIxybabU1A%3D&__EVENTVALIDATION=%2FwEWBQLrpruuAQLD95frAQLs3JTXBQK2r8c2Av6M0J8PTxSFESsCq9QTvBHTupApGoKrVQ0%3D
//就是登录不了网站,为什么?我估计服务器的代码是这样的
private void Btn_Login_Click(object sender, System.EventArgs e)
{
if(this.Txt_UserName.Text=="Admin"
&&
this.Txt_Password.Text=="123456"
{
//验证后转到DEFAULT
System.Web.Security.FormsAuthen
tication.SetAuthCookie(this.Txt_UserName.Text,false);
Response.Redirect("Default.aspx"
}
}
有朋友使用IDHTTP登录ASPX页面成功的吗?INDY9。18