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.

Get response

Post Reply
gresaggr
Posts: 22
Joined: Mon Mar 04, 2019 12:41 pm

Get response

Post by gresaggr »

Hello.
After open "site.com" also opening a lot of other urls (site.com/api/v1) in background.
How to get automate response from this "site.com/api/v1" without manual reopen?
User avatar
salvadordf
Posts: 4573
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: Get response

Post by salvadordf »

You can use a URLRequest to get responses without using a web browser.

Check the URLRequest demo to see if that's what you're looking for.
gresaggr
Posts: 22
Joined: Mon Mar 04, 2019 12:41 pm

Re: Get response

Post by gresaggr »

It must be done through a browser. Since this is the result of the scripts on the page.
User avatar
salvadordf
Posts: 4573
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: Get response

Post by salvadordf »

Then use TChromium.LoadURL again in the same browser or create a second background browser to call TChromium.LoadURL in the new browser.
gresaggr
Posts: 22
Joined: Mon Mar 04, 2019 12:41 pm

Re: Get response

Post by gresaggr »

After open "site1.com" via TChromiuim at sniffer I saw already opening "site.com/api/v1"
So it is not possible to intercept this response without forced reopen?
User avatar
salvadordf
Posts: 4573
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: Get response

Post by salvadordf »

Try using a filter to intercept that request.

See the ResponseFilterBrowser demo for more information.
gresaggr
Posts: 22
Joined: Mon Mar 04, 2019 12:41 pm

Re: Get response

Post by gresaggr »

Ok, thanks.
Post Reply