• Post Reply Bookmark Topic Watch Topic
  • New Topic

Network programming behing proxies - reg.  RSS feed

 
dinesh Venkatesan
Ranch Hand
Posts: 134
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Friends,

All the network connections from my system is getting routed through a proxy. My IE has been configured to use a Proxy URL Configuration script. This restricts me to write Networked Java programs that connects to internet.

I have an idea regarding Proxies, if the IP and username and password are given. i.e., Developing an Authenticator and overriding the getPasswordAuthentication() will work for me.

But i dont have an idea regarding Proxy URL handling.

Can anybody give some idea.
Thanks and Regards,
Dinesh Venkatesan
 
Rob Spoor
Sheriff
Posts: 21135
87
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Since Java 5.0, there is a class called java.net.Proxy. This can be used in the new URL.openConnection(Proxy) method to get a URLConnection that will use the Proxy.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!