hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jax <jaxles...@gmail.com>
Subject BasicCredentialsProvider and authentication on Server
Date Sun, 27 Jul 2014 18:31:37 GMT
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();
                        new AuthScope("localhost", 443),
                        new UsernamePasswordCredentials("username",

However, I don't see any classes/methods to aid in authentication on the
server side and then found this post.


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

View raw message