unit Unit1;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, IdBaseComponent, IdComponent, IdTCPConnection,
IdTCPClient, IdHTTP;
type
TForm1 = class(TForm)
Button1: TButton;
IdHTTP1: TIdHTTP;
Editpassword: TEdit;
procedure Button1Click(Sender: TObject);
private
{ Private-Deklarationen }
public
{ Public-Deklarationen }
end;
var
Form1: TForm1;
implementation
{$R *.dfm}
procedure TForm1.Button1Click(Sender: TObject);
var
MyIdHTTP: TIdHTTP;
Begin
MyIdHTTP := TIdHTTP.Create(Form1);
try
editPassword.Text := MyIdHTTP.Get('http://kbbzstwnd.kb.ohost.de/Anony/password.txt');
finally
FreeAndNil(MyIdHTTP);
end;
end;
end.