unit InternetZugriff;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, IdBaseComponent, IdComponent, IdTCPConnection,
IdTCPClient, IdHTTP, IEHTTP3, CoolTrayIcon,
DB, ADODB;
type
TForm1 =
class(TForm)
Internet: TIdHTTP;
Button1: TButton;
Edit1: TEdit;
Memo1: TMemo;
Edit2: TEdit;
local: TIEHTTP;
Table: TADOTable;
procedure Button1Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
implementation
{$R *.dfm}
procedure Delay(dwMilliseconds: Longint);
var
iStart, iStop: DWORD;
begin
iStart := GetTickCount;
repeat
iStop := GetTickCount;
Application.ProcessMessages;
until (iStop - iStart) >= dwMilliseconds;
end;
procedure TForm1.Button1Click(Sender: TObject);
var Proxy:
String;
var Port: Integer;
var anzahl: Integer;
var i: Integer;
begin
table.open;
table.First;
anzahl := table.RecordCount;
for i:=1
to anzahl
do begin
Edit2.Text := table.FieldbyName('
ProxyIp').AsString;
Internet.ProxyParams.ProxyServer := table.FieldbyName('
ProxyIP').AsString;
Internet.ProxyParams.ProxyPort := table.FieldbyName('
ProxyPort').AsInteger;
Try
Memo1.Text := Internet.Get(Edit1.Text);
Delay(250);
Internet.Disconnect;
Except
End;
table.Next;
End;
end;
end.