Disclosure Statement: This site contains affiliate links, which means that I may receive a commission if you make a purchase using these links. As an eBay Partner, I earn from qualifying purchases.
Try the ResponseFilterBrowser demo.
Modify TResponseFilterBrowserFrm.IsMyResource to identify the URL of the request that you want to inspect.
Also modify TResponseFilterBrowserFrm.Filter_OnFilter to use the CopyScript function and it will copy the contents in FStream.
GetResourceResponseFilter...........
var
TempHeader : string;
TempLen : integer;
begin
if (response <> nil) and (request.Method = 'POST') then
begin
Result := FCFilter;
TempHeader := trim(response.GetHeader('Content-Length'));
if TryStrToInt(TempHeader, TempLen) and (TempLen > 0) then
FRCscSize[NumAK] := TempLen
else
FRCscSize[NumAK] := -1;
end
else
Result := nil;
end;
If you comment out the Result := FCFilter; then there is no error but not working of course.
You do not have the required permissions to view the files attached to this post.
TChromium has the same "OnGetResourceResponseFilter" event with the same parameters for OSR or normal mode.
Right now I'm very busy but I'll take a look as soon as I can.
I tried to do in OSRExternalPumpBrowser, everything works. But in my application for some reason not. I myself create several browsers ChromOSR[Thrd]:= TChromium.Create (nil); but even if 1 create the would still not works.