当前位置:编程学习 > JAVA >>

getCredentialsProvider() is undefined for the type HttpClient

this.httpclient = new DefaultHttpClient();
this.context = new BasicHttpContext();
this.url = url;
AuthScope authscope=new AuthScope("192.168.1.30", 80);
Credentials credentials=new NTCredentials("liudamao","liudamao","","");
httpclient.getCredentialsProvider().setCredentials(authscope,credentials);
HttpHost proxy = new HttpHost("192.168.1.1", 80);
httpclient.getParams().setParameter(ConnRoutePNames.DEFAULT_PROXY, proxy);

出现getCredentialsProvider() is undefined for the type HttpClient错误~~~~~请教下这是什么情况 --------------------编程问答-------------------- 有没有人知道啊
补充:Java ,  Java SE
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,