From user-return-23986-apmail-commons-user-archive=commons.apache.org@commons.apache.org Mon Jan 25 06:04:58 2010 Return-Path: Delivered-To: apmail-commons-user-archive@www.apache.org Received: (qmail 73359 invoked from network); 25 Jan 2010 06:04:57 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 25 Jan 2010 06:04:57 -0000 Received: (qmail 42350 invoked by uid 500); 25 Jan 2010 06:04:56 -0000 Delivered-To: apmail-commons-user-archive@commons.apache.org Received: (qmail 42182 invoked by uid 500); 25 Jan 2010 06:04:55 -0000 Mailing-List: contact user-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Commons Users List" Delivered-To: mailing list user@commons.apache.org Received: (qmail 42172 invoked by uid 99); 25 Jan 2010 06:04:55 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 25 Jan 2010 06:04:55 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of lists+1258862264714-735979@n4.nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 25 Jan 2010 06:04:47 +0000 Received: from joe.nabble.com ([192.168.236.151]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1NZI3m-0006tN-86 for user@commons.apache.org; Sun, 24 Jan 2010 22:04:26 -0800 Date: Sun, 24 Jan 2010 22:04:26 -0800 (PST) From: Balakumar1982 To: user@commons.apache.org Message-ID: <1264399466245-1289048.post@n4.nabble.com> Subject: Http Client - Authentication Problem MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: Balakumar1982 I am stuck with uncommon problem. I need to post a file in URL with ask for user name & password to connect to host. But to reach out to the URL, I need to pass through by proxy server. I am able to do authentication with proxy server same way as some of standard example given with HttpClient (v 3.1). But I can't find a example or matching solution to my problem. Setting both proxy host with proxy credentials with AuthScope of Proxy Host & generic credentials with AuthScope of target server throws IllegalStateException (Authorization already Initialized). Is there a way to handle these kind of problem? -- View this message in context: http://n4.nabble.com/Http-Client-Authentication-Problem-tp1289048p1289048.html Sent from the Commons - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@commons.apache.org For additional commands, e-mail: user-help@commons.apache.org