set nonProxyHosts in Apache HttpClient 4.1.3
问题 I just cant help myself by answering this question. How can I set nonProxyHosts in the Apache HttpClient 4.1.3? In the old Httpclient 3.x that was quite simple. U could just set it using the setNonProxyHosts methods. But now, there's no equivalent method for the new version. I have been looking trough the api docs, tutorials and examples and havent found the solution so far. to set a normal proxy u can just do it by this: HttpHost proxy = new HttpHost("127.0.0.1", 8080, "http");