Web Proxy Question (Java)

Page 2 - Seeking answers? Join the AnandTech community: where nearly half-a-million members share solutions and discuss the latest tech.

kamper

Diamond Member
Mar 18, 2003
5,513
0
0
You could put as much as you want in a single file, it just depends on how messy you want your code to get. I'd have split just the server half of it into 10+ classes already but I tend to err on the side of too fancy :p
 

imported_nautique

Senior member
Jul 14, 2004
346
0
0
Ok....I am not seeing how I should create a connection as a client. First I created a new:

Socket clientProxy_ToServer = null;

then I did

clientProxy_ToServer = new Socket(80);

I am not sure exactly what to send to the web server. Or where to do it. and then what to do when the server responds and how do I send it back to my browser (the client). A little insight would be greatly appreciated.
Thanks for your help.