Skip to Main Content

Java APIs

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Http tunneling in java

892826Nov 11 2011 — edited Nov 14 2011
I 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.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 12 2011
Added on Nov 11 2011
15 comments
548 views