|
|

楼主 |
发表于 2008-9-27 15:01:53
|
显示全部楼层
原帖由 沦陷今生 于 2008-9-27 13:52 发表 
这个XY不用理会
为什么我登录不上
返回内容
<script language="javascript" type="text/javascript">
alert("不能频繁登录,请10分钟以后再试");
window.location.href = "http://www.51.com/";
</script>
而用网页登录就没事。。
用delphi写了个测试程序
源码如下:
procedure TForm1.Button1Click(Sender: TObject);
var
postList: TStrings;
begin
postList:= TStringList.Create;
postList.Add('psssport_51_user=musicpop');
postList.Add('psssport_51_password=82683653');
postList.Add('gourl=http%3A%2F%2Fmy.51.com%2Fwebim%2Findex.php%3Frefer%3D%2F&submit.x=22&submit.y=4');
Memo1.Text := idhttp1.POST('http://passport.51.com/login.5p',postList);
end;
IE登录抓包内容如下:
POST /login.5p HTTP/1.1
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, application/x-silverlight, application/QVOD, */*
Referer: http://www.51.com/
Accept-Language: zh-cn
Content-Type: application/x-www-form-urlencoded
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; User-agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; http://bsalsa.com) ; User-agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; http://bsalsa.com) (Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)); .NET CLR 1.1.4322; .NET CLR 2.0.50727)
Host: passport.51.com
Content-Length: 141
Connection: Keep-Alive
Cache-Control: no-cache
Cookie: WK_musicpop=2785510; WO_musicpop=1222487456859; musicpopFriend=1222452691
passport_51_user=musicpop&passport_51_password=82683653&gourl=http%3A%2F%2Fmy.51.com%2Fwebim%2Findex.php%3Frefer%3D%2F&submit.x=22&submit.y=4 |
|