Http tunneling in java
892826Nov 11 2011 — edited Nov 14 2011I have created a proxy server. Now i want to implement http tunneling in this.
My main class contain following code:
ServerSocket Server = new ServerSocket(localport);
Socket incoming = Server.accept();
Socket outgoing = new Socket(remotehost, remoteport);
*/**
**Now i am making use of InputStream and OutputStream for transporting the data*
**/*
I want to add http tunnel in this code. Please suggest some way. If available, then please provide some example code for http tunneling.