code: public void handleConnect(HttpServletRequest request,
                                HttpServletResponse response)
          throws IOException
      {
          String uri = request.getRequestURI();
          
          context.log("CONNECT: "+uri);
          
          InetAddrPort addrPort=new InetAddrPort(uri);
          
          //if (isForbidden(HttpMessage.__SSL_SCHEME,addrPort.getHost(),addrPort.getPort(),false))
          //{
          //    sendForbid(request,response,uri);
          //}
          //else
          {
              InputStream in=request.getInputStream();
              OutputStream out=response.getOutputStream();
              
              Socket socket = new Socket(addrPort.getInetAddress(),addrPort.getPort());
              context.log("Socket: "+socket);
              
              response.setStatus(200);
              response.setHeader("Connection","close");
              response.flushBuffer();
              
              System.err.println(response);
  
              context.log("out<-in");
              IO.copyThread(socket.getInputStream(),out);
              context.log("in->out");
              IO.copy(in,socket.getOutputStream());
          }
      }
docs: /* ------------------------------------------------------------