||Web App Security Testing with a Custom Proxy Server|
Your proxy reminds me of a project of mine from a few years ago called Protoscope. At the time, the sockets extension was so volatile that I wouldn't be surprised if it no longer works. You can glance through the source here:
Showing messages 1 through 1 of 1.