Advertisement
Guest User

Untitled

a guest
Jul 7th, 2015
186
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. try {
  2.  
  3. StrictMode.setThreadPolicy(new StrictMode.ThreadPolicy.Builder().permitNetwork().build());
  4. List<NameValuePair> nameValuePairs = new ArrayList<NameValuePair>();
  5. nameValuePairs.add(new BasicNameValuePair("firstName", firstName));
  6. nameValuePairs.add(new BasicNameValuePair("lastName", lastName));
  7. httppost.setEntity(new UrlEncodedFormEntity(nameValuePairs));
  8.  
  9. // Execute HTTP Post Request
  10. HttpResponse response = httpclient.execute(httppost);
  11. } catch (Exception e) {
  12. e.printStackTrace();
  13. }
  14.  
  15. error_log(var_export($_REQUEST, true) . "n", 3, "/Users/christianrusso/Desktop/crusso.log");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement