Post request for registering user data on server by HttpUrlConnection
问题 I am currently working on a project in which I need to send username,password and email of a user for registering the user on my server. I used POST command for that and as I have to send 3 values for register a user,I used ContentValues for that purpose. Here is my code: @Override protected String doInBackground(String... params) { try { url = new URL(params[0]); httpURLConnection = (HttpURLConnection) url.openConnection(); httpURLConnection.setDoInput(true); httpURLConnection.setDoOutput