Android HttpUrlConnection response object

view story

http://stackoverflow.com – Hey i'm using HttpUrlConnection in my app. And it's seems to me that every time when I'm making call as .getInputStream() or urlConnection.getResponseCode() etc it makes another request, so it is not good for me, when i'm making POST request. Is there a way to get some kind of response object which encapsulates response data and can be accessible from UI thread, something like this: private class RegisterAsync extends AsyncTask<String, Void, HttpResponse> { protected String doInBackground(String... strings) { HttpURLConnection urlConnection = null; Strin (HowTos)