Hello, I am trying to make a webserver(proxy) for debugging purposes, but nothing is getting dumped to disk.

What I want is a perl web server that passes everything back and forth between client and another webserver(proxy like) but also dumps all data to disk as well, while trying to modify some code the debug file is created but is not getting filled with data, anyone who can point out the obvious problem ?

Found it, all open/write/close needs to be inside the "if ($read) {" sequence, if a open is done outside somehow the write handle gets nuked. So now I got debug info I need to figure out whats going on...