Nov 22
|
The Proxy class can be used specify proxy details at the connection level.
SocketAddress addr = new InetSocketAddress("proxy.objects.com", 88); Proxy proxy = new Proxy(Proxy.Type.SOCKS, addr); URL url = new URL("http://java.sun.com/"); URConnection conn = url.openConnection(proxy);