5

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.

Dave Pateral
  • 1,415
  • 1
  • 14
  • 21
Mushu909
  • 1,194
  • 2
  • 11
  • 16
  • 1
    The solution I found [here](http://stackoverflow.com/a/15253142/1993824) is what finally worked for me. – Mushu909 Nov 18 '16 at 17:19

0 Answers0