Interception of HTTP requests for PHP