Return-Path: Delivered-To: apmail-hc-httpclient-users-archive@www.apache.org Received: (qmail 53558 invoked from network); 18 Jun 2009 14:17:35 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 18 Jun 2009 14:17:35 -0000 Received: (qmail 91065 invoked by uid 500); 18 Jun 2009 14:17:46 -0000 Delivered-To: apmail-hc-httpclient-users-archive@hc.apache.org Received: (qmail 91035 invoked by uid 500); 18 Jun 2009 14:17:46 -0000 Mailing-List: contact httpclient-users-help@hc.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "HttpClient User Discussion" Delivered-To: mailing list httpclient-users@hc.apache.org Received: (qmail 91025 invoked by uid 99); 18 Jun 2009 14:17:46 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 18 Jun 2009 14:17:46 +0000 X-ASF-Spam-Status: No, hits=-1.0 required=10.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [129.105.16.52] (HELO casbah.it.northwestern.edu) (129.105.16.52) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 18 Jun 2009 14:17:36 +0000 Received: from goldweic (pgoldweic.at.northwestern.edu [129.105.110.77]) by casbah.it.northwestern.edu (Postfix) with ESMTP id DAA8935C58 for ; Thu, 18 Jun 2009 09:17:14 -0500 (CDT) From: "Patricia Goldweic" To: "'HttpClient User Discussion'" References: <2340775C5D5E4506AC42DFB0D970917C@goldweic> <20090618135109.GA28617@ok2cons2.nine.ch> Subject: RE: Newbie question about digest authentication Date: Thu, 18 Jun 2009 09:17:47 -0500 Message-ID: <46D03267982140B8BC1ED96EDCAE44EC@goldweic> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 In-Reply-To: <20090618135109.GA28617@ok2cons2.nine.ch> Thread-Index: AcnwG+vxipzNApSoRueiw6HSOnPMhQAA5nLA X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579 X-Virus-Checked: Checked by ClamAV on apache.org Thanks, -Patricia pgoldweic@northwestern.edu > -----Original Message----- > From: Oleg Kalnichevski [mailto:olegk@apache.org] > Sent: Thursday, June 18, 2009 8:51 AM > To: HttpClient User Discussion > Subject: Re: Newbie question about digest authentication > > On Wed, Jun 17, 2009 at 05:39:45PM -0500, Patricia Goldweic wrote: > > Hi, > > I've just started using httpClient (version 3.1 at the moment), and > > I'm not clear as to the 'bigger' picture of using digest > > authentication with a particular get/post method. That is, I have a > > simple test case working with basic authentication and the tomcat > > MemoryRealm, but would like to understand whether, if I > were to switch > > to 'digest' authentication in httpclient, > > - I would also need to switch tomcat's realm configuration > to use the > > 'digest' attribute or not? > > - I would need to encrypt the paswords in the tomcat-users > file? (for > > testing purposes, I am just using the Memory realm with the default > > user > > file) > > - I would need to configure my web.xml file to use DIGEST > > authentication or BASIC authentication?. > > I think ideally it would be great if I could see some > sample code that > > uses digest authentication, and includes the corresponding tomcat > > realm definition/web.xml file. > > Thanks in advance for any pointers, > > -Patricia > > > > pgoldweic@northwestern.edu > > > > Hi Patricia > > HttpClient will automatically pick up Digest over Basic if > both are supported by the remote host. There is virtually no > difference between Digest and Basic from the HttpClient user > perspective. > > As far as Tomcat configuration concerned you will have a > better luck asking those questions on the Tomcat user list. > > Oleg > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org > For additional commands, e-mail: httpclient-users-help@hc.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org For additional commands, e-mail: httpclient-users-help@hc.apache.org