Webreference-Getting out of the Sandbox: Building an Applet Proxy Server | 2 | WebReference

Webreference-Getting out of the Sandbox: Building an Applet Proxy Server | 2

The Client Side

On the client side, a small class, HttpProxyConnection, is used to handle communications with the server. Its primary method is fetch(), which does the actual network communication. The bold portion below handles the equivalent to service() on the client end. It sends the PROXY command, reads in the content-length, and then reads that many characters into a buffer.