S
SPEAKER
Unregistered / Unconfirmed
GUEST, unregistred user!
如何用Idhttp登录这个网站:www.ogame.com.cn
急啊!
我用Idhttp.post试了,根本进不去,一提交信息就跳转会登录页面。
代码片断:
IdHttp1.AllowCookies:=True;
IdHTTP1.Request.Accept:='image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-powerpoint, application/vnd.ms-excel, application/msword, application/x-shockwave-flash, */*';
IdHTTP1.Request.Referer :='http://uni2.ogame.com.cn/game/reg/login2.php';
IdHTTP1.Request.AcceptLanguage:='zh-cn';
IdHTTP1.Request.AcceptEncoding:='gzip, deflate'; //gzip, deflate
IdHTTP1.Request.UserAgent:='Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 2.0.50727)';
IdHTTP1.Request.Host:='uni2.ogame.com.cn';
IdHTTP1.Request.ContentLength:=80;
IdHTTP1.Request.Connection:=' Keep-Alive';
IdHTTP1.Request.CacheControl:='no-cache';
IdHTTP1.HandleRedirects:=True;
IdHTTP1.Request.ContentType:='application/x-www-form-urlencoded';
急啊!
我用Idhttp.post试了,根本进不去,一提交信息就跳转会登录页面。
代码片断:
IdHttp1.AllowCookies:=True;
IdHTTP1.Request.Accept:='image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-powerpoint, application/vnd.ms-excel, application/msword, application/x-shockwave-flash, */*';
IdHTTP1.Request.Referer :='http://uni2.ogame.com.cn/game/reg/login2.php';
IdHTTP1.Request.AcceptLanguage:='zh-cn';
IdHTTP1.Request.AcceptEncoding:='gzip, deflate'; //gzip, deflate
IdHTTP1.Request.UserAgent:='Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 2.0.50727)';
IdHTTP1.Request.Host:='uni2.ogame.com.cn';
IdHTTP1.Request.ContentLength:=80;
IdHTTP1.Request.Connection:=' Keep-Alive';
IdHTTP1.Request.CacheControl:='no-cache';
IdHTTP1.HandleRedirects:=True;
IdHTTP1.Request.ContentType:='application/x-www-form-urlencoded';