How do I add basic authentication for the default client of the httpClient library? I have seen examples where they use client.getCredentialProvider(), however I th
DefaultHttpClient has getCredentialsProvider() but HttpClient doesn't.
You need to declare
DefaultHttpClient client = ...
instead of
HttpClient client = ...