You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
((DefaultHttpClient)client.getHttpClient()).getCredentialsProvider()
.setCredentials(AuthScope.ANY, new UsernamePasswordCredentials(username, password));
RequestParams params = new RequestParams();
params.put("user[photo]", new File("pic.jpg")); // Upload a File
client.post("http://myendpoint.com", params, null);
Getting A Response; Error 401
The text was updated successfully, but these errors were encountered:
AsyncHttpClient client = new AsyncHttpClient();
Getting A Response; Error 401
The text was updated successfully, but these errors were encountered: