Hello Lalit, > int status = methodClass.execute(httpclient.getState(),httpConnection);
You MUST use one of the HttpClient.execute(...) methods. Authentication will not work any other way. cheers, Roland > -----Original Message----- > From: Roland Weber [mailto:[EMAIL PROTECTED] > Sent: Monday, December 11, 2006 3:40 PM > To: HttpClient User Discussion > Subject: RE: How to test Connection timeout > > > Hello Lalit, > > > When I am using HttpConnection I am getting following error: > > > > Error 401--Unauthorized > > > > When I am using HttpClient instead of HttpConnection it is working > fine. > > You can NOT use HttpConnection directly. All HTTP logic, > including authentication, is implemented in HttpMethodBase > or the method director. You MUST use HttpClient. > > cheers, > Roland > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] >
smime.p7s
Description: S/MIME Cryptographic Signature
