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 1318811C53 for ; Sun, 27 Jul 2014 18:32:06 +0000 (UTC) Received: (qmail 58728 invoked by uid 500); 27 Jul 2014 18:32:05 -0000 Delivered-To: apmail-hc-httpclient-users-archive@hc.apache.org Received: (qmail 58685 invoked by uid 500); 27 Jul 2014 18:32:05 -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 58665 invoked by uid 99); 27 Jul 2014 18:32:05 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 27 Jul 2014 18:32:05 +0000 X-ASF-Spam-Status: No, hits=1.0 required=5.0 tests=SPF_SOFTFAIL X-Spam-Check-By: apache.org Received-SPF: softfail (nike.apache.org: transitioning domain of jaxleslie@gmail.com does not designate 216.139.236.26 as permitted sender) Received: from [216.139.236.26] (HELO sam.nabble.com) (216.139.236.26) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 27 Jul 2014 18:32:02 +0000 Received: from tom.nabble.com ([192.168.236.105]) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1XBTEP-0004UH-9H for httpclient-users@hc.apache.org; Sun, 27 Jul 2014 11:31:37 -0700 Date: Sun, 27 Jul 2014 11:31:37 -0700 (PDT) From: jax To: httpclient-users@hc.apache.org Message-ID: <1406485897259-23910.post@n7.nabble.com> Subject: BasicCredentialsProvider and authentication on Server MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Hi All, I am using basic authentication and posting to a httpcore nio 4.3.2 server. I am using httpClient 4.3 to create the basic auth as per the example: CredentialsProvider credsProvider = new BasicCredentialsProvider(); credsProvider.setCredentials( new AuthScope("localhost", 443), new UsernamePasswordCredentials("username", "password")); However, I don't see any classes/methods to aid in authentication on the server side and then found this post. http://httpcomponents.10934.n7.nabble.com/httpcomponents-authentication-digest-parsing-td153.html So, should i just add the "Authorization" block in my httpPost object as a header? Or is there a better way to do this? Thanks, Jax. -- View this message in context: http://httpcomponents.10934.n7.nabble.com/BasicCredentialsProvider-and-authentication-on-Server-tp23910.html Sent from the HttpClient-User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org For additional commands, e-mail: httpclient-users-help@hc.apache.org