Цитата:
Сообщение от NumLock
Код:
var
i: Integer;
begin
IdHTTP1.CookieManager:=nil;
IdHTTP1.HandleRedirects:=True;
IdHTTP1.Get('');
for i:=1 to 10 do
begin
// ...
IdHTTP1.Post('', nil);
// ...
end;
end;
|
спасибо очень помогли!
шас буду пробывать
а вот я правильно сделал что бы из едит 1 был гет ?
str:=idHTTP1.Get('http:/');
Edit1.Text:=Str;
а возможно ли ? сделать из едита 1 казаное число?
Код:
if Form1.ComboBox1.Text = 'http://monitor.econet.org.ua/' then
begin
form1.IdHTTP1.CookieManager:=nil;
form1.IdHTTP1.AllowCookies:=true;
form1.IdHTTP1.HandleRedirects:=True;
form1.IdHTTP1.Get('http://monitor.econet.org.ua/');
begin
data.add('action=vote');
data.add('id='+ Form1.Edit1.Text);
form1.idHTTP1.Post('http://monitor.econet.org.ua/votes.php', nil ,data);
end;
end;
что сдесь не так?? у меня не делаеться гет(( а только пост
IdHTTP1.Post('', nil);
пишет
[DCC Error] Unit1.pas(343): E2251 Ambiguous overloaded call to 'Post'
IdHTTP.pas(529): Related method: function TIdCustomHTTP.Post(string; TStrings): string;
IdHTTP.pas(531): Related method: function TIdCustomHTTP.Post(string; TIdMultiPartFormDataStream): string;