Delphi

Hollywood

Carder
Messages
31
Reputation
0
Reaction score
4
Points
8
Глуповатый вопрос, но, pos ищет в коде сайта или на странице?
 

ViDoG

Professional
Messages
130
Reputation
28
Reaction score
38
Points
28
В коде.
Пример:
Code:
procedure TForm1.Button1Click(Sender: TObject);
var
  Page: string;
begin
  IdHTTP1.AllowCookies := true;
  IdHTTP1.HandleRedirects := true;
  try
    Page := IdHTTP1.Get('http://google.ru');
  except
  end;
  if Pos('{google.ml(new Error("GLMM"),false,{src:g}', Page) <> 0 then
  begin
    ShowMessage('YES');
  end
  else
  begin
    ShowMessage('NO');
  end;
end;
 

cyber

Professional
Messages
545
Reputation
99
Reaction score
185
Points
43
1. скачиваешь в переменную ответ сервера
2. ищешь при помощи pos то что тебе нужно уже в этой переменной
 
Top