First of all, thanks to Cool Dude for answering your own question. I had the same problem, but I did not use HttpClient, but instead HttpURLConnection directly. In this case, the solution has the following form:
myUrl.openConnection(java.net.Proxy.NO_PROXY);
source share