Answer the question
In order to leave comments, you need to log in
Post request, where does it generate new data?
<input type="hidden" value="c4a1f3104786b3cb874aa622a344aa0543178e12" name="YII_CSRF_TOKEN">
Answer the question
In order to leave comments, you need to log in
var
loging: TStringList;
befer :string ;
name: string;
begin
befer := idhtp1.Get('http://сайт.ru/');
name := Pars('<input type="hidden" value="',befer,'" name="YII_CSRF_TOKEN">');
edt3.Text:=(name);
end;
Function ... (for a given string type ...)
function GetValue(Str:string):String;
var
p1,p2:Integer;
begin
p1:=pos('value="',Str);
p2:=pos('" name="',Str);
Result:=Copy(Str,p1+7,(p2-p1)-7);
end;
procedure TForm1.FormCreate(Sender: TObject);
var
s: String;
begin
s := '<input type="hidden" value="c4a1f3104786b3cb874aa622a344aa0543178e12" name="YII_CSRF_TOKEN">';
Form1.Caption:=GetValue(s);
end;
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question