Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- try {
- StrictMode.setThreadPolicy(new StrictMode.ThreadPolicy.Builder().permitNetwork().build());
- List<NameValuePair> nameValuePairs = new ArrayList<NameValuePair>();
- nameValuePairs.add(new BasicNameValuePair("firstName", firstName));
- nameValuePairs.add(new BasicNameValuePair("lastName", lastName));
- httppost.setEntity(new UrlEncodedFormEntity(nameValuePairs));
- // Execute HTTP Post Request
- HttpResponse response = httpclient.execute(httppost);
- } catch (Exception e) {
- e.printStackTrace();
- }
- error_log(var_export($_REQUEST, true) . "n", 3, "/Users/christianrusso/Desktop/crusso.log");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement