I would like to configure a proxy server to my Jersey client. I don\'t want to configure the proxy to the whole application (using JVM arguments such as http.proxyHost),
Try
Proxy proxy = new Proxy(Proxy.Type.HTTP, new InetSocketAddress(host, port)); conn = new URL(url).openConnection(proxy);