Specifically, the version I am using is Jersey 1.19
. Currently this is what I am doing:
Client client = Client.create();
client.getProperties().put(ApacheHttpClientConfig.PROPERTY_PROXY_URI, "myhost:myport");
However, this didn't work for me since I got an UnknownHostException
:
com.sun.jersey.api.client.ClientHandlerException: java.net.UnknownHostException:
Help is much appreciated.