Page 1 of 1
Get response
Posted: Sat Apr 25, 2020 3:19 pm
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?
Re: Get response
Posted: Sat Apr 25, 2020 3:58 pm
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.
Re: Get response
Posted: Sat Apr 25, 2020 4:24 pm
by gresaggr
It must be done through a browser. Since this is the result of the scripts on the page.
Re: Get response
Posted: Sat Apr 25, 2020 4:54 pm
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.
Re: Get response
Posted: Sat Apr 25, 2020 8:55 pm
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?
Re: Get response
Posted: Sun Apr 26, 2020 8:14 am
by salvadordf
Try using a filter to intercept that request.
See the ResponseFilterBrowser demo for more information.
Re: Get response
Posted: Sun Apr 26, 2020 9:11 am
by gresaggr
Ok, thanks.