Page 1 of 1

How to get the content of a url in ResourceLoadComplete?

Posted: Tue Oct 26, 2021 6:19 pm
by alpires2000
Hi, in ResourceLoadComplete event I get the url with "request.url", but how to get the content of this url?

Thanks

Re: How to get the content of a url in ResourceLoadComplete?

Posted: Tue Oct 26, 2021 10:52 pm
by Uefi1
form1.Memo2.Lines.Add(chromium1.Browser.MainFrame.Url);

Re: How to get the content of a url in ResourceLoadComplete?

Posted: Wed Oct 27, 2021 8:49 am
by salvadordf
alpires2000 wrote: Tue Oct 26, 2021 6:19 pm Hi, in ResourceLoadComplete event I get the url with "request.url", but how to get the content of this url?
You can create a URL request with "request.url" as URL to get the contents. See the URLRequest demo for all the details.

Alternatively, you can also use the code in the ResponseFilterBrowser demo but that's more complicated.