Return-Path: X-Original-To: apmail-hc-httpclient-users-archive@www.apache.org Delivered-To: apmail-hc-httpclient-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 520639E80 for ; Wed, 10 Oct 2012 19:29:36 +0000 (UTC) Received: (qmail 95667 invoked by uid 500); 10 Oct 2012 19:29:35 -0000 Delivered-To: apmail-hc-httpclient-users-archive@hc.apache.org Received: (qmail 95630 invoked by uid 500); 10 Oct 2012 19:29:35 -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 95619 invoked by uid 99); 10 Oct 2012 19:29:35 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Oct 2012 19:29:35 +0000 X-ASF-Spam-Status: No, hits=0.7 required=5.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [217.150.250.48] (HELO kalnich.nine.ch) (217.150.250.48) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Oct 2012 19:29:30 +0000 Received: from [192.168.1.147] (77-57-197-206.dclient.hispeed.ch [77.57.197.206]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by kalnich.nine.ch (Postfix) with ESMTPSA id 73090B802DC for ; Wed, 10 Oct 2012 21:29:09 +0200 (CEST) Message-ID: <1349897344.11689.7.camel@ubuntu> Subject: Re: preemptive authentication issue From: Oleg Kalnichevski To: HttpClient User Discussion Date: Wed, 10 Oct 2012 21:29:04 +0200 In-Reply-To: References: <1579549587CEA24C85CE49CE261FA5E10FD62DDB@ltischcorpx01.lti.int> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.2.3-0ubuntu6 Content-Transfer-Encoding: 7bit Mime-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org On Wed, 2012-10-10 at 10:24 -0500, Stephen J. Butler wrote: > On Wed, Oct 10, 2012 at 9:03 AM, Welty, Richard wrote: > > However, I am having all kinds of problems getting preemptive authentication to work with the service now site, and I don't have much time left to get it working. Can anyone offer any suggestions on how to do this? Service now does not do interactive auth, I have no choice but to do preemptive, but I followed the example here: > > I never got pre-emptive auth working either. What I did was construct > the Basic Auth header manually and add it to the request myself. Works > fine, and the code seemed just as long (or shorter) than the code > example given for pre-emptive auth. > > http://en.wikipedia.org/wiki/Basic_access_authentication > @Stephen Make sure you are not affected by HTTPCLIENT-1215. The downside of this approach is that HttpClient will not retry authentication by using another scheme in case of preemptive authentication failure. @Jason One can also use internal HttpClient logging facility to produce packet wire dump along with some contextual details that can come quite handy. @Richard Make sure you are not affected by HTTPCLIENT-1215. If the default port value (-1) is not the culprit, post a wire / context log of the session and I'll have a look at it. Oleg --------------------------------------------------------------------- To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org For additional commands, e-mail: httpclient-users-help@hc.apache.org