Java中设置HTTP代理的方法,更多细节请参考:http://viralpatel.net/blogs/http-proxy-setting-java-setting-proxy-java/
System.getProperties().put("http.proxyHost", "someProxyURL"); System.getProperties().put("http.proxyPort", "someProxyPort"); // http://www.75271.com System.getProperties().put("http.proxyUser", "someUserName"); System.getProperties().put("http.proxyPassword", "somePassword");