How would you go about determining the outgoing HTTP requests of a page? Maybe with something like the PEAR HTTP_Request package (http://pear.php.net/manual/en/packag...-request.php)?

EDIT: Just to clarify, ideally I would want a function that takes a URL as a parameter and returns all the outgoing HTTP requests of said URL.