Proxima Login fail
Installation and Configuration
No changes. I never make it this far. Proxima kicks back 401 before it ever makes it too my app.
Quote:{"code":401,"text":"Unauthorized","note":"invalid user session"}
public static String postData(URI uri, String session_id){
AndroidHttpClient client = AndroidHttpClient.newInstance("AndroidAgent");
HttpPost request = new HttpPost(uri);
String credentials = ClientMap.PROXIMA_PASSWORD + ":" + session_id;
String base64EncodedCredentials = Base64.encodeToString(credentials.getBytes(), Base64.NO_WRAP);
request.addHeader("Authorization", "Basic " + base64EncodedCredentials);
HttpResponse response;
Log.i(TAG, "session id to payment is " + session_id);
try {
response = client.execute(request);
return EntityUtils.toString(response.getEntity());
} catch (IOException e) {
e.printStackTrace();
return null;
} finally {
client.close();
}
}