| Line 388... |
Line 388... |
| 388 |
HttpClient httpclient = new DefaultHttpClient();
|
388 |
HttpClient httpclient = new DefaultHttpClient();
|
| 389 |
|
389 |
|
| 390 |
nameValuePairs = new ArrayList<>();
|
390 |
nameValuePairs = new ArrayList<>();
|
| 391 |
String updateURL = apiData.getString("useredit.url","");
|
391 |
String updateURL = apiData.getString("useredit.url","");
|
| 392 |
String url = updateURL+userData.getString("id","");
|
392 |
String url = updateURL+userData.getString("id","");
|
| 393 |
nameValuePairs.add(new BasicNameValuePair("id",userData.getString("id",null)));
|
393 |
nameValuePairs.add(new BasicNameValuePair("id",userData.getString("id",null)));
|
| 394 |
nameValuePairs.add(new BasicNameValuePair("referrer",arg0[0]));
|
394 |
nameValuePairs.add(new BasicNameValuePair("referrer",arg0[0]));
|
| 395 |
HttpPost httppost = new HttpPost(url);
|
395 |
HttpPost httppost = new HttpPost(url);
|
| 396 |
httppost.setHeader("Authorization", ProfitTillConstants.BASIC_AUTH);
|
396 |
httppost.setHeader("Authorization", ProfitTillConstants.BASIC_AUTH);
|
| 397 |
httppost.setEntity(new UrlEncodedFormEntity(nameValuePairs));
|
397 |
httppost.setEntity(new UrlEncodedFormEntity(nameValuePairs));
|
| 398 |
HttpResponse response = httpclient.execute(httppost);
|
398 |
HttpResponse response = httpclient.execute(httppost);
|