getting URLconnection when the client is behind a proxy
mustang india
Ranch Hand
Joined: Feb 05, 2002
Posts: 60
posted
0
HI, I want to write a java client which connects toa praticular server and download a file. How will I get the URLConnection when I am behind a firewall ? Anybody pl suggest. Regards, Mustang.
Peter den Haan
author
Ranch Hand
Joined: Apr 20, 2000
Posts: 3252
posted
0
Off the top of my head, set the http.proxyHost and http.proxyPort system properties. If you have an authenticating proxy, it's a bit more complicated than that because you've got to code authentication callbacks. - Peter
mustang india
Ranch Hand
Joined: Feb 05, 2002
Posts: 60
posted
0
HI Peter, Thanks for the reply. I have an authenticating proxy..what can I do for that ? Regards, Mustang.