Java Applet Behing Firewall

I am using the URL Object to download data using HTTP Protocol , but i cant do that if i am accessing my Applet behind the firewall.Please be free to reply if you have the solution for it.
[210 byte] By [Mahesh@idealake.com] at [2007-9-30 4:13:14]
# 1

If the proxy need "basic" authentification, do that :

URL url = new URL("www.google.com"));

URLConnection urlConn = url.openConnection();

String auth = "Basic " + new sun.misc.BASE64Encoder().encode("user:password".getBytes());

urlConn.setRequestProperty("Proxy-Authorization", auth);

otherwise do that

Properties systemProperties = System.getProperties();

systemProperties.setProperty("http.proxyHost", proxy);

systemProperties.setProperty("http.proxyPort", port);

Authenticator.setDefault(new SimpleAuthenticator(username,password));

SimpleAuthenticator extends java.net.Authenticator

ehebert02 at 2007-7-1 12:18:30 > top of Java-index,Administration Tools,Sun Connection...
# 2
Thank for your reply, but i am behind firewall, and the URL related code is in the java Applet.
Mahesh@idealake.com at 2007-7-1 12:18:30 > top of Java-index,Administration Tools,Sun Connection...