Hi Thanks im using this i have downloaded it Got the example under Both 2.0_branch final
The file is sized 217Kb and dated 2004-02-17 I have looked in th API doc according to the API doc HttpState getState() Returns HTTP state associated with the HttpClient. client.getState().setCredentials("realm","www.verisign.com",new UsernamePasswordCredentials("username", "password")); But according to my IDE client.getState() only returns State and not HttpState Since there is no method setCredentials on State. What to do it seems like there have been a mixed up in versions and API on the Apache side or ? Regards Peter ----- Original Message ----- From: "Oleg Kalnichevski" <[EMAIL PROTECTED]> To: "Commons HttpClient Project" <[EMAIL PROTECTED]> Sent: Friday, February 20, 2004 12:51 PM Subject: Re: Still not getting it to work Peter, (1) Use commons-httpclient-2.0.jar. It is the official stable release of HttpClient (2) Please pay attention to capitalization of method names: HttpClient#getState is not the same as HttpClient#GetState (3) Method HttpState#setCredentials(String, String, Credemtials) does exist in both 2.0 and 3.0-dev For more details please refer to the HttpClient javadocs: http://jakarta.apache.org/commons/httpclient/apidocs/index.html Oleg On Fri, 2004-02-20 at 12:16, Peter Andersén wrote: > Hi > I have commons-httpclient-2.0.jar this in my classpath. > This is from the binary file ! > I have downloaded > commons-httpclient-2.0-src.zip > This should contain the source for the same as the binary ???? > > The code here is the same as in 1.2 it is > client.getState().setCredentials( > > "realm", > > "www.verisign.com", > > new UsernamePasswordCredentials("username", "password") > > ); > > > > The method setCredential does not exsist ! > > Is there some other example i should download , that is not for 2.0 is this not the same versions ???? > > Regards > > Peter A > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]