I have an existing module (developed using C) that works as a HTTP proxy and acts as man in middle. This HTTP proxy sits in between browser and actual web server.