POST包返回以下数据 POST /login.php?POST /login.php? HTTP/1.1
Accept: image/jpeg, application/x-ms-application, image/gif, application/xaml+xml, image/pjpeg, application/x-ms-xbap, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, */*
Referer: http://bbs.leshan.cn/login.php
Accept-Language: zh-CN
User-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.1)
Content-Type: application/x-www-form-urlencoded
Accept-Encoding: gzip, deflate
Host: bbs.leshan.cn
Content-Length: 114
Connection: Keep-Alive
Cache-Control: no-cache
Cookie: b971d_c_stamp=1294895243; b971d_lastvisit=90%091294895243%09%2Flogin.php; b971d_lastpos=other; b971d_cknum=BgJYBVpbAQIHDjA5BlFXXwcAUQFRBloDBQMAVVhTUVYCD1FXAAlQUwEBVgQ%3D; b971d_ol_offset=96709; lzstat_uv=17252624493684770983|1694322; lzstat_ss=1365361343_0_1294924064_1694322
POST下面的一个包返回 forward=&jumpurlforward=&jumpurl=index.php&step=2&lgt=0&pwuser=qq123123&pwpwd=q123123&hideid=0&cktime=31536000&submit=%B5%C7%C2%BC怎么解释呀。。这啥子封包 应该怎么写。我是要做一个POST登陆论坛!
Accept: image/jpeg, application/x-ms-application, image/gif, application/xaml+xml, image/pjpeg, application/x-ms-xbap, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, */*
Referer: http://bbs.leshan.cn/login.php
Accept-Language: zh-CN
User-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.1)
Content-Type: application/x-www-form-urlencoded
Accept-Encoding: gzip, deflate
Host: bbs.leshan.cn
Content-Length: 114
Connection: Keep-Alive
Cache-Control: no-cache
Cookie: b971d_c_stamp=1294895243; b971d_lastvisit=90%091294895243%09%2Flogin.php; b971d_lastpos=other; b971d_cknum=BgJYBVpbAQIHDjA5BlFXXwcAUQFRBloDBQMAVVhTUVYCD1FXAAlQUwEBVgQ%3D; b971d_ol_offset=96709; lzstat_uv=17252624493684770983|1694322; lzstat_ss=1365361343_0_1294924064_1694322
POST下面的一个包返回 forward=&jumpurlforward=&jumpurl=index.php&step=2&lgt=0&pwuser=qq123123&pwpwd=q123123&hideid=0&cktime=31536000&submit=%B5%C7%C2%BC怎么解释呀。。这啥子封包 应该怎么写。我是要做一个POST登陆论坛!
FInfoGet是idhttp
FInfoGet.HandleRedirects:=False;
FInfoGet.OnRedirect:=MyRedirect;
FInfoGet.Request.UserAgent:='Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1)';
FInfoGet.Request.ContentType:='application/x-www-form-urlencoded';
//FInfoGet.Request.Connection:='Keep-Alive';
FInfoGet.Request.CacheControl := 'no-cache';
FInfoGet.Request.AcceptLanguage := 'zh-cn';
FInfoGet.Request.Accept:='*/*';
FInfoGet.Request.Method := hmPost; FParamList.Clear;
FParamList.Add('TPL_username=xxxxxxx');
FParamList.Add('TPL_password=xxxxxx');
FParamList.Add('_tb_token_=');
FParamList.Add('action=Authenticator');
FParamList.Add('event_submit_do_login=anything');
FParamList.Add('TPL_redirect_url=');
FParamList.Add('from=tb');
FParamList.Add('fc=2');
FParamList.Add('style=default');
FParamList.Add('tid=XOR_1_111000000000000000000000000000_63584421307E09797204760B');
FParamList.Add('support=000001');
FParamList.Add('CtrlVersion=1,0,0,7');
FParamList.Add('loginType=3');
FParamList.Add('minititle=');
FParamList.Add('minipara=');
FParamList.Add('pstrong=2');
FParamList.Add('longLogin=-1');
FParamList.Add('llnick=');
FParamList.Add('sign=');
FParamList.Add('need_sign=');
FParamList.Add('isIgnore=');
FParamList.Add('popid=');
FParamList.Add('callback=');
FParamList.Add('not_duplite_str=');
FParamList.Add('need_user_id=');
FParamList.Add('from_encoding=');
FInfoGet.Request.ContentLength:=Length(FParamList.Text);