Downloading via proxy with applet

S

Sir Ben

Hi,

I need to develop an applet that will download data into itself from the web
via a proxy.

Is this possible? Or is it against the security constraints set by Java's
sandbox model?

Thanks,

Sir Ben.
 
P

Patrick Hofmann

Sir said:
Hi,

I need to develop an applet that will download data into itself from the
web via a proxy.

Is this possible? Or is it against the security constraints set by Java's
sandbox model?

sure it is possible, but the user will be asked to accept the security-risks
(and you have to sign your applet)

greets,
paff
 
S

Stefan Schulz

sure it is possible, but the user will be asked to accept the
security-risks(and you have to sign your applet)

Unless you have a server-side component that serves as the Proxy, which
is situated on the host the Applet gets downloaded from.
 
J

John C. Bollinger

Sir said:
I need to develop an applet that will download data into itself from the web
via a proxy.

Is this possible? Or is it against the security constraints set by Java's
sandbox model?

An unprivileged applet may make network connections only to the server
from which it was downloaded. If you use that server as your proxy, or
if you establish a relay on that server (which you could characterize as
a second proxy) then you can do what you describe within the security
constraints applied by default to applets. To allow your applet to make
connections to other hosts you will need to sign it, and clients will
need at runtime to accept the signed applet as trusted.


John Bollinger
(e-mail address removed)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top