1
登錄論壇後需要幫助保持會話。 我使用TIdHttp,並已經分配已經DELPHI/INDY/IdHTTP登錄invision電源板論壇?
Http.Get(Url); //..Used to get session Id that is then stored in FSessionID
Param := TStringList.Create;
Param.Add('act=Login');
Param.Add('CODE=01');
Param.Add('s='+FSessionID);
Param.Add('referer=''''');
Param.Add('CookieDate=1');
Param.Add('UserName=MYUsername');
Param.Add('PassWord=MyPassword');
Http.Post(Url,Param); //..The was Login succesfull. Made sure by checking responce
Http.Get(Url); //..Now its not logged in. Why????
您使用的是哪個版本的indy? – jachguate 2010-12-18 14:59:45