idhttp post mail163的问题
idhttp post mail163的问题
procedure TForm1.Button1Click(Sender: TObject);
var
Response: TStringStream;
postList: TStrings;
begin
Edit1.Text := 'http://mail.163.com/';
Response := TStringStream.Create('');
postList := TStringList.Create;
try
postList.Add('username=我的用户名');
postList.Add('userpwd=我的密码');
IdHTTP1.Post(Edit1.Text, postList, Response);
finally
Memo1.Lines.Text := Response.DataString;
Response.Free;
postList.Free;
end;
end;
post以后 再memo中返回了 源码 如何判断依据登陆成功了呢 我返回的源代码 页没登陆时候的源码一样啊 ??
求助