Below, you can find a link to the source code to a simple HTTP proxy server script. It’s written in PERL and requires a connection to a database to store the intresting data. But you can easily comment the lines in the code where the functions newConnRec() and connectDB() are called.
This is the script which were in use to intercept and observe proxy server traffic inside the anonymizing proxy networks. You can find further information about it here.