'Catching subsequent requests of an initial HTTP request

The client sends an initial HTTP request to the server and receives a HTML document that contains a Javascript script. This script, when exectued, fires another HTTP request... I'm trying to catch these subsequent requests and their responses. I've tried selenium's Devtools but it is verbose and very slow. So, is there best practice for this problem?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source