I've had some problems with buffering, sometimes the proxy responded with multiple null bytes prepended/appended to output. Seems fixed now, I also added the Content-Length header and a different port argument. I'm not a Java guy, so feel free to improve this.
added eclipse files to gitignore
added Content-Length header to response and fixed some buffer offset …
added support for specifying different port for http proxy