I'm trying to update my Abdera client application to use Basic authentication. Here is my basic code for initializing the client:
Abdera abdera = new Abdera();
AbderaClient client = new AbderaClient(abdera);
AbderaClient.registerTrustManager(); // needed for SSL
client.addCredentials(AuthScope.ANY_HOST, AuthScope.ANY_REALM, AuthScope.ANY_SCHEME, new UsernamePasswordCredentials(apiKey + "%" + userName, password));
When I use the client to PUT however I get a 401: Unauthorized error. I've tested the same URL and credentials using RESTClient and they work fine. Any suggestions as to why it would not authorize properly?
... View more