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.
If you find these projects useful please consider becoming a sponsor with Patreon, GitHub or Liberapay.

How to get the content of a url in ResourceLoadComplete?

Post Reply
alpires2000
Posts: 52
Joined: Sat Dec 09, 2017 4:40 pm

How to get the content of a url in ResourceLoadComplete?

Post by alpires2000 »

Hi, in ResourceLoadComplete event I get the url with "request.url", but how to get the content of this url?

Thanks
User avatar
Uefi1
Posts: 43
Joined: Tue Aug 24, 2021 1:58 pm

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

Post by Uefi1 »

form1.Memo2.Lines.Add(chromium1.Browser.MainFrame.Url);
User avatar
salvadordf
Posts: 4580
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

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

Post 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.
Post Reply