Get body Request.
Posted: Fri Oct 04, 2019 5:36 pm
Hello,
how do I get the body of a request?
Inside this boby is a JSON that you need to search when loading a site.
procedure TForm1.Chromium1ResourceResponse(Sender: TObject;
const browser: ICefBrowser; const frame: ICefFrame;
const request: ICefRequest; const response: ICefResponse;
out Result: Boolean);
var
PostData: ICefPostData;
i: integer;
begin
PostData := request.PostData;
if (PostData <> nil) then
begin
for i := 0 to PostData.GetCount -1 do
begin
end;
end;
end;
I don't know how to convert ICefPostData content to a string.
Thanks
how do I get the body of a request?
Inside this boby is a JSON that you need to search when loading a site.
procedure TForm1.Chromium1ResourceResponse(Sender: TObject;
const browser: ICefBrowser; const frame: ICefFrame;
const request: ICefRequest; const response: ICefResponse;
out Result: Boolean);
var
PostData: ICefPostData;
i: integer;
begin
PostData := request.PostData;
if (PostData <> nil) then
begin
for i := 0 to PostData.GetCount -1 do
begin
end;
end;
end;
I don't know how to convert ICefPostData content to a string.
Thanks