[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Building a proxy



Hello folks,

I am trying to write some code to grab files from
a back end web
server and proxy it to the end client. A graphical
representation
would be:

NETWORK
CLIENT <--------> WEB SERVER A <-----------> WEB
SERVER B

FILE DISTRIBUTION MEDIUM
FILE
<-------------------------------------------------
---> FILE LOCATION

When the CLIENT clicks on a link on WEB SERVER A,
I want
to initiate a connection to WEB SERVER B, grab a
file and
stream it or buffer it and send it to the client.
I want the servlet
on WEB SERVER A to act as a proxy, so the client
cannot
directly communicate with WEB SERVER B.

If anyone has any recommendations or code to share
I would
appreciate it.

Thanks!

- Ryn