我想用delphi编个自动登陆BBS的程序,怎么做呀!请高手教我~~ 比如说:自动登陆 www.veryox.com username aaa password 1111111

解决方案 »

  1.   

    这个自动注册的怎么不行呀?unit Unit1;interfaceuses
      Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
      Dialogs, IdCookieManager, IdBaseComponent, IdComponent, IdTCPConnection,
      IdTCPClient, IdHTTP, StdCtrls;type
      TForm1 = class(TForm)
        Button1: TButton;
        IdHTTP1: TIdHTTP;
        IdCookieManager1: TIdCookieManager;
        procedure Button1Click(Sender: TObject);
      private
        { Private declarations }
      public
        { Public declarations }
      end;var
      Form1: TForm1;implementation{$R *.dfm}procedure TForm1.Button1Click(Sender: TObject);
    var
      str:Tstringlist;
    begin
    str.Create();
    str.Add('username=abc');
    str.Add('password=1111111');
    str.Add('password2=1111111');
    str.Add('[email protected]');
    str.Add('[email protected]');
    str.Add('advshow=1');
    //idhttp1.Request.Referer:='http://www.veryox.com/index.php';
    idhttp1.Post('http://www.veryox.com/register.php',str)end;end.