Post request to server using HttpUrlConnection
问题 I am stuck in between. I want to implement a POST method using HttpUrlConnection to Post the email,name and password for registering a user to the server. Here is my code : public void createNewProfile(View view){ new Post().execute("http://myurl.com"); } private class Post extends AsyncTask<String, Void, String>{ @Override protected String doInBackground(String... params) { try { URL url = new URL("http://myurl.com"); HttpURLConnection conn = (HttpURLConnection) url.openConnection(); conn