Apr 02

HttpClient does not use the standard Java system properties for specifying proxy details.

Specifying the proxy details when using HttpClient is achieved using the host configuration of the client as shown in the following snippet.

HttpClient client = new HttpClient();
client.getHostConfiguration().setProxy("proxy1.objects.com.au", 8001);

written by objects \\ tags: , ,

Leave a Reply

You must be logged in to post a comment.