我这里的代理服务器是不需要用户名和密码的,用System类设置是这样的
System.setProperty("proxySet", "true");
System.setProperty("proxyHost", "***.***.*.*");
System.setProperty("proxyPort", "8080");
但是在HttpClient里设置后连接网站却报错,下面是代码:HttpClient httpClient = new HttpClient();
httpClient.getHostConfiguration().setProxyHost(
new ProxyHost("***.***.*.*", 8080));
GetMethod get = new GetMethod(strDomain);
System.out.println(new String(get.getResponseBody(), "UTF-8"));
try {
  httpClient.executeMethod(get);
} catch (HttpException e) {
} catch (IOException e) {
}报错:2006-4-17 16:57:43 org.apache.commons.httpclient.auth.AuthChallengeProcessor selectAuthScheme
信息: ntlm authentication scheme selected2006-4-17 16:57:43 org.apache.commons.httpclient.HttpMethodDirector processProxyAuthChallenge
信息: No credentials available for NTLM <any realm>@***.***.*.*:8080