CrazyPawno
Новичок
Тут я вписал прокси,но при нажатии на кнопку оно отправляет запрос с родного ип а не с прокси что делать?
skype crazy-rulez
skype crazy-rulez
unit Unit1;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, IdBaseComponent, IdComponent, IdTCPConnection,
IdTCPClient, IdHTTP;
type
TForm1 = class(TForm)
IdHTTP1: TIdHTTP;
Button1: TButton;
Edit1: TEdit;
Button2: TButton;
procedure Button1Click(Sender: TObject);
procedure Button2Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
implementation
{$R *.dfm}
procedure TForm1.Button1Click(Sender: TObject);
var
i: integer;
proxy, port,a : String;
begin
proxy:=Copy(Memo1.Lines,1,Pos(':',Memo1.Lines)-1);
port:=Copy(Memo1.Lines,Pos(':',Memo1.Lines)+1,Length(Memo1.Lines));
a:=IdHTTP1.Get(Тут запрос);
inc(i); //следующий прокси из мемо
end;
end.
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, IdBaseComponent, IdComponent, IdTCPConnection,
IdTCPClient, IdHTTP;
type
TForm1 = class(TForm)
IdHTTP1: TIdHTTP;
Button1: TButton;
Edit1: TEdit;
Button2: TButton;
procedure Button1Click(Sender: TObject);
procedure Button2Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
implementation
{$R *.dfm}
procedure TForm1.Button1Click(Sender: TObject);
var
i: integer;
proxy, port,a : String;
begin
proxy:=Copy(Memo1.Lines,1,Pos(':',Memo1.Lines)-1);
port:=Copy(Memo1.Lines,Pos(':',Memo1.Lines)+1,Length(Memo1.Lines));
a:=IdHTTP1.Get(Тут запрос);
inc(i); //следующий прокси из мемо
end;
end.
