You are viewing a plain text version of this content. The canonical link for it is here.
Posted to httpclient-users@hc.apache.org by Angelo Chen <an...@yahoo.com.hk> on 2008/11/15 15:23:42 UTC

HC 3.0.1: getParams can't compile

Hi,

Following code does not compile:

HttpClient client = new HttpClient();
client.getParams().setParameter("http.useragent", "My Browser");
looks like getParams not part of HttpClient, but I can see that in code
complete under Intellij's IDEA

any idea? thanks
-- 
View this message in context: http://www.nabble.com/HC-3.0.1%3A-getParams-can%27t-compile-tp20515936p20515936.html
Sent from the HttpClient-User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org
For additional commands, e-mail: httpclient-users-help@hc.apache.org


Re: HC 3.0.1: getParams can't compile

Posted by Oleg Kalnichevski <ol...@apache.org>.
On Sat, 2008-11-15 at 06:23 -0800, Angelo Chen wrote:
> Hi,
> 
> Following code does not compile:
> 
> HttpClient client = new HttpClient();
> client.getParams().setParameter("http.useragent", "My Browser");
> looks like getParams not part of HttpClient, but I can see that in code
> complete under Intellij's IDEA
> 
> any idea? thanks

Most likely you have HttpClient 2.x jar on the classpath somewhere. Sort
out classpath settings.

Oleg


---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org
For additional commands, e-mail: httpclient-users-help@hc.apache.org