Implementing an HTTP proxy server